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.
|
isFeatureSupported
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
isFeatureSupported
public String getId()
XMLSignature.SignatureValue
Id
attribute of this
SignatureValue
, which permits this element to be
referenced from elsewhere.getId
in interface XMLSignature.SignatureValue
Id
attribute (may be null
if
not specified)public byte[] getValue()
XMLSignature.SignatureValue
SignatureValue
.getValue
in interface XMLSignature.SignatureValue
null
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.SignatureValue
SignedInfo
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.SignatureValue
validateContext
- 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 DOMStructure
MarshalException
Copyright © 2000-2012 The Apache Software Foundation. All Rights Reserved.