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
 SignatureOptions addReference(String href)
           
 X509Certificate getCertificate()
          Return the X.509 cert to associated with the signature
 PublicKey getPublicKey()
          Get the public key associated with the signature
 String[] getReferences()
           
 String getSigningAlgorithm()
           
 PrivateKey getSigningKey()
          Return the private key with which to sign the element
 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
 SignatureOptions setCertificate(X509Certificate cert)
          Set the X.509 cert to associate with the signature
 SignatureOptions setPublicKey(PublicKey publickey)
          Set the public key to associate with the signature
 SignatureOptions setSignedLinkRels(String... rel)
          Only sign links whose link rels match those provided in the list
 SignatureOptions setSigningAlgorithm(String algorithm)
           
 SignatureOptions setSigningKey(PrivateKey privateKey)
          Set the private key with which to sign the element
 SignatureOptions 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 String getSigningAlgorithm()
Specified by:
getSigningAlgorithm in interface SignatureOptions

setSigningAlgorithm

public SignatureOptions setSigningAlgorithm(String algorithm)
Specified by:
setSigningAlgorithm in interface SignatureOptions

getSigningKey

public 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 SignatureOptions setSigningKey(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 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 SignatureOptions setCertificate(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 SignatureOptions addReference(String href)
Specified by:
addReference in interface SignatureOptions

getReferences

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

getPublicKey

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

Specified by:
getPublicKey in interface SignatureOptions

setPublicKey

public SignatureOptions setPublicKey(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 SignatureOptions 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 String[] getSignLinkRels()
Description copied from interface: SignatureOptions
Get the list of link relations to sign

Specified by:
getSignLinkRels in interface SignatureOptions

setSignedLinkRels

public SignatureOptions setSignedLinkRels(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


Copyright © 2006-2012 Apache Software Foundation. All Rights Reserved.