org.apache.abdera.security
Interface SignatureOptions

All Superinterfaces:
SecurityOptions
All Known Implementing Classes:
XmlSignatureOptions

public interface SignatureOptions
extends SecurityOptions

Provides access to the information necessary to signed an Abdera element


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 interface org.apache.abdera.security.SecurityOptions
getParser, setParser
 

Method Detail

getSigningAlgorithm

java.lang.String getSigningAlgorithm()

setSigningAlgorithm

void setSigningAlgorithm(java.lang.String algorithm)

getSigningKey

java.security.PrivateKey getSigningKey()
Return the private key with which to sign the element


setSigningKey

void setSigningKey(java.security.PrivateKey privateKey)
Set the private key with which to sign the element


getCertificate

java.security.cert.X509Certificate getCertificate()
Return the X.509 cert to associated with the signature


setCertificate

void setCertificate(java.security.cert.X509Certificate cert)
Set the X.509 cert to associate with the signature


getPublicKey

java.security.PublicKey getPublicKey()
Get the public key associated with the signature


setPublicKey

void setPublicKey(java.security.PublicKey publickey)
Set the public key to associate with the signature


addReference

void addReference(java.lang.String href)

getReferences

java.lang.String[] getReferences()

setSignLinks

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


isSignLinks

boolean isSignLinks()
True if atom:link/@href and atom:content/@src targets should be included in the signature


setSignedLinkRels

void setSignedLinkRels(java.lang.String... rel)
Only sign links whose link rels match those provided in the list


getSignLinkRels

java.lang.String[] getSignLinkRels()
Get the list of link relations to sign