Class SignatureImpl
java.lang.Object
org.opensaml.core.xml.AbstractXMLObject
org.opensaml.xmlsec.signature.impl.SignatureImpl
XMLObject representing an enveloped or detached XML Digital Signature, version 20020212, Signature element.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringCanonicalization algorithm used in signature.private List<ContentReference>References to content to be signed.private IntegerOptional HMAC output length parameter to the signature algorithm.private KeyInfoPublic key information to embed in the signature.private StringAlgorithm used to generate the signature.private CredentialKey used to sign the signature.private org.apache.xml.security.signature.XMLSignatureConstructed Apache XML Security signature object.Fields inherited from interface org.opensaml.xmlsec.signature.Signature
DEFAULT_ELEMENT_LOCAL_NAME, DEFAULT_ELEMENT_NAME, TYPE_LOCAL_NAME, TYPE_NAME -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSignatureImpl(String namespaceURI, String elementLocalName, String namespacePrefix) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.xml.security.signature.XMLSignatureGet the Apache XML Security signature instance held by this object.voidvoidsetCanonicalizationAlgorithm(String newAlgorithm) voidsetHMACOutputLength(Integer length) voidsetKeyInfo(KeyInfo newKeyInfo) voidsetSignatureAlgorithm(String newAlgorithm) voidsetSigningCredential(Credential newCredential) voidsetXMLSignature(org.apache.xml.security.signature.XMLSignature signature) Set the Apache XML Security signature instance held by this object.Methods inherited from class org.opensaml.core.xml.AbstractXMLObject
detach, ensureDOM, 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, setSchemaTypeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensaml.core.xml.XMLObject
detach, ensureDOM, getDOM, getElementQName, getIDIndex, getNamespaceManager, getNamespaces, getNoNamespaceSchemaLocation, getObjectMetadata, getParent, getSchemaLocation, getSchemaType, hasChildren, hasParent, isNil, isNilXSBoolean, releaseChildrenDOM, releaseParentDOM, resolveID, resolveIDFromRoot, setDOM, setNil, setNil, setNoNamespaceSchemaLocation, setParent, setSchemaLocation
-
Field Details
-
canonicalizationAlgorithm
Canonicalization algorithm used in signature. -
signatureAlgorithm
Algorithm used to generate the signature. -
hmacOutputLength
Optional HMAC output length parameter to the signature algorithm. -
signingCredential
Key used to sign the signature. -
keyInfo
Public key information to embed in the signature. -
contentReferences
References to content to be signed. -
xmlSignature
@Nullable private org.apache.xml.security.signature.XMLSignature xmlSignatureConstructed Apache XML Security signature object.
-
-
Constructor Details
-
SignatureImpl
protected SignatureImpl(@Nullable String namespaceURI, @Nonnull String elementLocalName, @Nullable String namespacePrefix) Constructor.- Parameters:
namespaceURI- the namespace the element is inelementLocalName- the local name of the XML element this Object representsnamespacePrefix- the prefix for the given namespace
-
-
Method Details
-
getCanonicalizationAlgorithm
- Specified by:
getCanonicalizationAlgorithmin interfaceSignature
-
setCanonicalizationAlgorithm
- Specified by:
setCanonicalizationAlgorithmin interfaceSignature
-
getSignatureAlgorithm
- Specified by:
getSignatureAlgorithmin interfaceSignature
-
setSignatureAlgorithm
- Specified by:
setSignatureAlgorithmin interfaceSignature
-
getHMACOutputLength
- Specified by:
getHMACOutputLengthin interfaceSignature
-
setHMACOutputLength
- Specified by:
setHMACOutputLengthin interfaceSignature
-
getSigningCredential
- Specified by:
getSigningCredentialin interfaceSignature
-
setSigningCredential
- Specified by:
setSigningCredentialin interfaceSignature
-
getKeyInfo
- Specified by:
getKeyInfoin interfaceSignature
-
setKeyInfo
- Specified by:
setKeyInfoin interfaceSignature
-
getContentReferences
- Specified by:
getContentReferencesin interfaceSignature
-
getOrderedChildren
- Specified by:
getOrderedChildrenin interfaceXMLObject
-
releaseDOM
public void releaseDOM()- Specified by:
releaseDOMin interfaceXMLObject- Overrides:
releaseDOMin classAbstractXMLObject
-
getXMLSignature
@Nullable public org.apache.xml.security.signature.XMLSignature getXMLSignature()Get the Apache XML Security signature instance held by this object.- Returns:
- an Apache XML Security signature object
-
setXMLSignature
public void setXMLSignature(@Nullable org.apache.xml.security.signature.XMLSignature signature) Set the Apache XML Security signature instance held by this object.- Parameters:
signature- an Apache XML Security signature object
-