org.opensaml.xml.signature
Interface Signature

All Superinterfaces:
XMLObject
All Known Implementing Classes:
SignatureImpl

public interface Signature
extends XMLObject

XMLObject representing an enveloped or detached XML Digital Signature, version 20020212, Signature element.


Field Summary
static java.lang.String DEFAULT_ELEMENT_LOCAL_NAME
          Element local name.
static javax.xml.namespace.QName DEFAULT_ELEMENT_NAME
          Default element name.
static java.lang.String TYPE_LOCAL_NAME
          Local name of the XSI type.
static javax.xml.namespace.QName TYPE_NAME
          QName of the XSI type.
 
Method Summary
 java.lang.String getCanonicalizationAlgorithm()
          Gets the canonicalization algorithm used to create the signature content.
 java.util.List<ContentReference> getContentReferences()
          Gets the list of signature content references.
 java.lang.Integer getHMACOutputLength()
          Gets the HMAC output length value, optionally used when signing with an HMAC signature algorithm.
 KeyInfo getKeyInfo()
          Gets the key info added to this signature.
 java.lang.String getSignatureAlgorithm()
          Gets the algorithm used to compute the signature.
 Credential getSigningCredential()
          Gets the signature signing credential.
 void setCanonicalizationAlgorithm(java.lang.String newAlgorithm)
          Sets the canonicalization algorithm used to create the signature content.
 void setHMACOutputLength(java.lang.Integer length)
          Sets the HMAC output length value, optionally used when signing with an HMAC signature algorithm.
 void setKeyInfo(KeyInfo newKeyInfo)
          Sets the key info added to this signature.
 void setSignatureAlgorithm(java.lang.String newAlgorithm)
          Sets the algorithm used to compute the signature.
 void setSigningCredential(Credential newCredential)
          Sets the signature signing credential.
 
Methods inherited from interface org.opensaml.xml.XMLObject
addNamespace, detach, getDOM, getElementQName, getIDIndex, getNamespaces, getNoNamespaceSchemaLocation, getOrderedChildren, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, releaseChildrenDOM, releaseDOM, releaseParentDOM, removeNamespace, resolveID, resolveIDFromRoot, setDOM, setNoNamespaceSchemaLocation, setParent, setSchemaLocation
 

Field Detail

DEFAULT_ELEMENT_LOCAL_NAME

static final java.lang.String DEFAULT_ELEMENT_LOCAL_NAME
Element local name.

See Also:
Constant Field Values

DEFAULT_ELEMENT_NAME

static final javax.xml.namespace.QName DEFAULT_ELEMENT_NAME
Default element name.


TYPE_LOCAL_NAME

static final java.lang.String TYPE_LOCAL_NAME
Local name of the XSI type.

See Also:
Constant Field Values

TYPE_NAME

static final javax.xml.namespace.QName TYPE_NAME
QName of the XSI type.

Method Detail

getCanonicalizationAlgorithm

java.lang.String getCanonicalizationAlgorithm()
Gets the canonicalization algorithm used to create the signature content.

Returns:
the canonicalization algorithm used to create the signature content

setCanonicalizationAlgorithm

void setCanonicalizationAlgorithm(java.lang.String newAlgorithm)
Sets the canonicalization algorithm used to create the signature content.

Parameters:
newAlgorithm - the canonicalization algorithm used to create the signature content

getSignatureAlgorithm

java.lang.String getSignatureAlgorithm()
Gets the algorithm used to compute the signature.

Returns:
the algorithm used to compute the signature

setSignatureAlgorithm

void setSignatureAlgorithm(java.lang.String newAlgorithm)
Sets the algorithm used to compute the signature.

Parameters:
newAlgorithm - the algorithm used to compute the signature

getHMACOutputLength

java.lang.Integer getHMACOutputLength()
Gets the HMAC output length value, optionally used when signing with an HMAC signature algorithm.

Returns:
the HMACOutputLength value

setHMACOutputLength

void setHMACOutputLength(java.lang.Integer length)
Sets the HMAC output length value, optionally used when signing with an HMAC signature algorithm.

Parameters:
length - the new HMACOutputLength value

getSigningCredential

Credential getSigningCredential()
Gets the signature signing credential.

Returns:
the signature signing credential

setSigningCredential

void setSigningCredential(Credential newCredential)
Sets the signature signing credential.

Parameters:
newCredential - the signature signing credential

getKeyInfo

KeyInfo getKeyInfo()
Gets the key info added to this signature.

Returns:
the key info added to this signature

setKeyInfo

void setKeyInfo(KeyInfo newKeyInfo)
Sets the key info added to this signature.

Parameters:
newKeyInfo - the key info added to this signature

getContentReferences

java.util.List<ContentReference> getContentReferences()
Gets the list of signature content references.

Returns:
the list of signature content references


Copyright © 2006-2011 Internet2. All Rights Reserved.