public class SignatureImpl extends AbstractXMLObject implements Signature
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
canonicalizationAlgorithm
Canonicalization algorithm used in signature.
|
private java.util.List<ContentReference> |
contentReferences
References to content to be signed.
|
private java.lang.Integer |
hmacOutputLength
Optional HMAC output length parameter to the signature algorithm.
|
private KeyInfo |
keyInfo
Public key information to embed in the signature.
|
private java.lang.String |
signatureAlgorithm
Algorithm used to generate the signature.
|
private Credential |
signingCredential
Key used to sign the signature.
|
private org.apache.xml.security.signature.XMLSignature |
xmlSignature
Constructed Apache XML Security signature object.
|
DEFAULT_ELEMENT_LOCAL_NAME, DEFAULT_ELEMENT_NAME, TYPE_LOCAL_NAME, TYPE_NAME| Modifier | Constructor and Description |
|---|---|
protected |
SignatureImpl(java.lang.String namespaceURI,
java.lang.String elementLocalName,
java.lang.String namespacePrefix)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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.util.List<XMLObject> |
getOrderedChildren()
Gets an unmodifiable list of child elements in the order that they will appear in the DOM.
|
java.lang.String |
getSignatureAlgorithm()
Gets the algorithm used to compute the signature.
|
Credential |
getSigningCredential()
Gets the signature signing credential.
|
org.apache.xml.security.signature.XMLSignature |
getXMLSignature()
Get the Apache XML Security signature instance held by this object.
|
void |
releaseDOM()
Releases the DOM representation of this XMLObject, if there is one.
|
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.
|
void |
setXMLSignature(org.apache.xml.security.signature.XMLSignature signature)
Set the Apache XML Security signature instance held by this object.
|
detach, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getObjectMetadata, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, manageQualifiedAttributeNamespace, prepareAttributeValueForAssignment, prepareElementContentForAssignment, prepareForAssignment, prepareForAssignment, prepareForAssignment, registerOwnID, releaseChildrenDOM, releaseParentDOM, releaseThisAndChildrenDOM, releaseThisandParentDOM, resolveID, resolveIDFromRoot, setDOM, setElementNamespacePrefix, setElementQName, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation, setSchemaTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdetach, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getObjectMetadata, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, releaseChildrenDOM, releaseParentDOM, resolveID, resolveIDFromRoot, setDOM, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocationprivate java.lang.String canonicalizationAlgorithm
private java.lang.String signatureAlgorithm
private java.lang.Integer hmacOutputLength
private Credential signingCredential
private KeyInfo keyInfo
private java.util.List<ContentReference> contentReferences
private org.apache.xml.security.signature.XMLSignature xmlSignature
protected SignatureImpl(java.lang.String namespaceURI,
java.lang.String elementLocalName,
java.lang.String namespacePrefix)
namespaceURI - the namespace the element is inelementLocalName - the local name of the XML element this Object representsnamespacePrefix - the prefix for the given namespacepublic java.lang.String getCanonicalizationAlgorithm()
getCanonicalizationAlgorithm in interface Signaturepublic void setCanonicalizationAlgorithm(java.lang.String newAlgorithm)
setCanonicalizationAlgorithm in interface SignaturenewAlgorithm - the canonicalization algorithm used to create the signature contentpublic java.lang.String getSignatureAlgorithm()
getSignatureAlgorithm in interface Signaturepublic void setSignatureAlgorithm(java.lang.String newAlgorithm)
setSignatureAlgorithm in interface SignaturenewAlgorithm - the algorithm used to compute the signaturepublic java.lang.Integer getHMACOutputLength()
getHMACOutputLength in interface Signaturepublic void setHMACOutputLength(java.lang.Integer length)
setHMACOutputLength in interface Signaturelength - the new HMACOutputLength valuepublic Credential getSigningCredential()
getSigningCredential in interface Signaturepublic void setSigningCredential(Credential newCredential)
setSigningCredential in interface SignaturenewCredential - the signature signing credentialpublic KeyInfo getKeyInfo()
getKeyInfo in interface Signaturepublic void setKeyInfo(KeyInfo newKeyInfo)
setKeyInfo in interface SignaturenewKeyInfo - the key info added to this signaturepublic java.util.List<ContentReference> getContentReferences()
getContentReferences in interface Signaturepublic java.util.List<XMLObject> getOrderedChildren()
getOrderedChildren in interface XMLObjectpublic void releaseDOM()
releaseDOM in interface XMLObjectreleaseDOM in class AbstractXMLObjectpublic org.apache.xml.security.signature.XMLSignature getXMLSignature()
public void setXMLSignature(org.apache.xml.security.signature.XMLSignature signature)
signature - an Apache XML Security signature object