org.apache.abdera.security
Interface SignatureOptions

All Superinterfaces:
SecurityOptions

public interface SignatureOptions
extends SecurityOptions

Provides access to the information necessary to signed an Abdera element


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

Method Detail

getSigningAlgorithm

String getSigningAlgorithm()

setSigningAlgorithm

SignatureOptions setSigningAlgorithm(String algorithm)

getSigningKey

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


setSigningKey

SignatureOptions setSigningKey(PrivateKey privateKey)
Set the private key with which to sign the element


getCertificate

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


setCertificate

SignatureOptions setCertificate(X509Certificate cert)
Set the X.509 cert to associate with the signature


getPublicKey

PublicKey getPublicKey()
Get the public key associated with the signature


setPublicKey

SignatureOptions setPublicKey(PublicKey publickey)
Set the public key to associate with the signature


addReference

SignatureOptions addReference(String href)

getReferences

String[] getReferences()

setSignLinks

SignatureOptions 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

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


getSignLinkRels

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



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