org.apache.abdera.security.xmlsec
Class XmlSignatureOptions

java.lang.Object
  extended by org.apache.abdera.security.xmlsec.XmlSecurityOptions
      extended by org.apache.abdera.security.xmlsec.XmlSignatureOptions
All Implemented Interfaces:
SecurityOptions, SignatureOptions

public class XmlSignatureOptions
extends XmlSecurityOptions
implements SignatureOptions


Field Summary
 
Fields inherited from class org.apache.abdera.security.xmlsec.XmlSecurityOptions
abdera, parser
 
Constructor Summary
protected XmlSignatureOptions(Abdera abdera)
           
 
Method Summary
 void addReference(java.lang.String href)
           
 java.security.cert.X509Certificate getCertificate()
          Return the X.509 cert to associated with the signature
 java.security.PublicKey getPublicKey()
          Get the public key associated with the signature
 java.lang.String[] getReferences()
           
 java.lang.String getSigningAlgorithm()
           
 java.security.PrivateKey getSigningKey()
          Return the private key with which to sign the element
 java.lang.String[] getSignLinkRels()
          Get the list of link relations to sign
 boolean isSignLinks()
          True if atom:link/@href and atom:content/@src targets should be included in the signature
 void setCertificate(java.security.cert.X509Certificate cert)
          Set the X.509 cert to associate with the signature
 void setPublicKey(java.security.PublicKey publickey)
          Set the public key to associate with the signature
 void setSignedLinkRels(java.lang.String... rel)
          Only sign links whose link rels match those provided in the list
 void setSigningAlgorithm(java.lang.String algorithm)
           
 void setSigningKey(java.security.PrivateKey privateKey)
          Set the private key with which to sign the element
 void setSignLinks(boolean signlinks)
          True if atom:link/@href and atom:content/@src targets should be included in the signature
 
Methods inherited from class org.apache.abdera.security.xmlsec.XmlSecurityOptions
getParser, setParser
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.abdera.security.SecurityOptions
getParser, setParser
 

Constructor Detail

XmlSignatureOptions

protected XmlSignatureOptions(Abdera abdera)
Method Detail

getSigningAlgorithm

public java.lang.String getSigningAlgorithm()
Specified by:
getSigningAlgorithm in interface SignatureOptions

setSigningAlgorithm

public void setSigningAlgorithm(java.lang.String algorithm)
Specified by:
setSigningAlgorithm in interface SignatureOptions

getSigningKey

public java.security.PrivateKey getSigningKey()
Description copied from interface: SignatureOptions
Return the private key with which to sign the element

Specified by:
getSigningKey in interface SignatureOptions

setSigningKey

public void setSigningKey(java.security.PrivateKey privateKey)
Description copied from interface: SignatureOptions
Set the private key with which to sign the element

Specified by:
setSigningKey in interface SignatureOptions

getCertificate

public java.security.cert.X509Certificate getCertificate()
Description copied from interface: SignatureOptions
Return the X.509 cert to associated with the signature

Specified by:
getCertificate in interface SignatureOptions

setCertificate

public void setCertificate(java.security.cert.X509Certificate cert)
Description copied from interface: SignatureOptions
Set the X.509 cert to associate with the signature

Specified by:
setCertificate in interface SignatureOptions

addReference

public void addReference(java.lang.String href)
Specified by:
addReference in interface SignatureOptions

getReferences

public java.lang.String[] getReferences()
Specified by:
getReferences in interface SignatureOptions

getPublicKey

public java.security.PublicKey getPublicKey()
Description copied from interface: SignatureOptions
Get the public key associated with the signature

Specified by:
getPublicKey in interface SignatureOptions

setPublicKey

public void setPublicKey(java.security.PublicKey publickey)
Description copied from interface: SignatureOptions
Set the public key to associate with the signature

Specified by:
setPublicKey in interface SignatureOptions

isSignLinks

public boolean isSignLinks()
Description copied from interface: SignatureOptions
True if atom:link/@href and atom:content/@src targets should be included in the signature

Specified by:
isSignLinks in interface SignatureOptions

setSignLinks

public void setSignLinks(boolean signlinks)
Description copied from interface: SignatureOptions
True if atom:link/@href and atom:content/@src targets should be included in the signature

Specified by:
setSignLinks in interface SignatureOptions

getSignLinkRels

public java.lang.String[] getSignLinkRels()
Description copied from interface: SignatureOptions
Get the list of link relations to sign

Specified by:
getSignLinkRels in interface SignatureOptions

setSignedLinkRels

public void setSignedLinkRels(java.lang.String... rel)
Description copied from interface: SignatureOptions
Only sign links whose link rels match those provided in the list

Specified by:
setSignedLinkRels in interface SignatureOptions