public class DOMXMLSignature.DOMSignatureValue extends DOMStructure implements XMLSignature.SignatureValue
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getId()
Returns the optional
Id attribute of this
SignatureValue, which permits this element to be
referenced from elsewhere. |
byte[] |
getValue()
Returns the signature value of this
SignatureValue. |
int |
hashCode() |
void |
marshal(Node parent,
String dsPrefix,
DOMCryptoContext context) |
boolean |
validate(XMLValidateContext validateContext)
Validates the signature value.
|
isFeatureSupportedclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitisFeatureSupportedpublic String getId()
XMLSignature.SignatureValueId attribute of this
SignatureValue, which permits this element to be
referenced from elsewhere.getId in interface XMLSignature.SignatureValueId attribute (may be null if
not specified)public byte[] getValue()
XMLSignature.SignatureValueSignatureValue.getValue in interface XMLSignature.SignatureValuenull if the
XMLSignature has not been signed yet). Each
invocation of this method returns a new clone of the array to
prevent subsequent modification.public boolean validate(XMLValidateContext validateContext) throws XMLSignatureException
XMLSignature.SignatureValueSignedInfo of the XMLSignature.
This method only validates the signature the first time it is invoked. On subsequent invocations, it returns a cached result.
validate in interface XMLSignature.SignatureValuevalidateContext - the validating contexttrue if the signature was
validated successfully; false otherwiseXMLSignatureException - if an unexpected exception occurs while
validating the signaturepublic void marshal(Node parent, String dsPrefix, DOMCryptoContext context) throws MarshalException
marshal in class DOMStructureMarshalExceptionCopyright © 2000–2023 The Apache Software Foundation. All rights reserved.