This project has retired. For details please refer to its Attic page.

org.apache.abdera.security
Interface Signature


public interface Signature

Interface used for digitally signing and verifying Abdera elements


Method Summary
 SignatureOptions getDefaultSignatureOptions()
          Returns the default signing options
<T extends Element>
org.apache.xml.security.keys.KeyInfo
getSignatureKeyInfo(T element, SignatureOptions options)
           
<T extends Element>
X509Certificate[]
getValidSignatureCertificates(T element, SignatureOptions options)
          Returns a listing of X.509 certificates of valid digital signatures in the element
<T extends Element>
boolean
isSigned(T element)
          Return true if the element has been digitally signed
<T extends Element>
T
removeInvalidSignatures(T element, SignatureOptions options)
           
<T extends Element>
T
sign(T element, SignatureOptions options)
          Adds a digital signature to the specified element
<T extends Element>
boolean
verify(T element, SignatureOptions options)
          Verifies that the digitally signed element is valid
 

Method Detail

isSigned

<T extends Element> boolean isSigned(T element)
                 throws SecurityException
Return true if the element has been digitally signed

Throws:
SecurityException

sign

<T extends Element> T sign(T element,
                           SignatureOptions options)
                       throws SecurityException
Adds a digital signature to the specified element

Throws:
SecurityException

verify

<T extends Element> boolean verify(T element,
                                   SignatureOptions options)
               throws SecurityException
Verifies that the digitally signed element is valid

Throws:
SecurityException

getValidSignatureCertificates

<T extends Element> X509Certificate[] getValidSignatureCertificates(T element,
                                                                    SignatureOptions options)
                                                throws SecurityException
Returns a listing of X.509 certificates of valid digital signatures in the element

Throws:
SecurityException

getSignatureKeyInfo

<T extends Element> org.apache.xml.security.keys.KeyInfo getSignatureKeyInfo(T element,
                                                                             SignatureOptions options)
                                                         throws SecurityException
Throws:
SecurityException

getDefaultSignatureOptions

SignatureOptions getDefaultSignatureOptions()
                                            throws SecurityException
Returns the default signing options

Throws:
SecurityException
See Also:
SignatureOptions

removeInvalidSignatures

<T extends Element> T removeInvalidSignatures(T element,
                                              SignatureOptions options)
                                          throws SecurityException
Throws:
SecurityException


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