org.apache.jcp.xml.dsig.internal.dom
Class DOMXMLSignature.DOMSignatureValue
java.lang.Object
org.apache.jcp.xml.dsig.internal.dom.DOMStructure
org.apache.jcp.xml.dsig.internal.dom.DOMXMLSignature.DOMSignatureValue
- All Implemented Interfaces:
- XMLSignature.SignatureValue, XMLStructure
- Enclosing class:
- DOMXMLSignature
public class DOMXMLSignature.DOMSignatureValue
- extends DOMStructure
- implements XMLSignature.SignatureValue
getId
public String getId()
- Description copied from interface:
XMLSignature.SignatureValue
- Returns the optional
Id attribute of this
SignatureValue, which permits this element to be
referenced from elsewhere.
- Specified by:
getId in interface XMLSignature.SignatureValue
- Returns:
- the
Id attribute (may be null if
not specified)
getValue
public byte[] getValue()
- Description copied from interface:
XMLSignature.SignatureValue
- Returns the signature value of this
SignatureValue.
- Specified by:
getValue in interface XMLSignature.SignatureValue
- Returns:
- the signature value (may be
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.
validate
public boolean validate(XMLValidateContext validateContext)
throws XMLSignatureException
- Description copied from interface:
XMLSignature.SignatureValue
- Validates the signature value. This method performs a
cryptographic validation of the signature calculated over the
SignedInfo of the XMLSignature.
This method only validates the signature the first
time it is invoked. On subsequent invocations, it returns a cached
result.
- Specified by:
validate in interface XMLSignature.SignatureValue
- Parameters:
validateContext - the validating context
- Returns:
true if the signature was
validated successfully; false otherwise
- Throws:
XMLSignatureException - if an unexpected exception occurs while
validating the signature
equals
public boolean equals(Object o)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
marshal
public void marshal(Node parent,
String dsPrefix,
DOMCryptoContext context)
throws MarshalException
- Specified by:
marshal in class DOMStructure
- Throws:
MarshalException
Copyright © 2000–2014 The Apache Software Foundation. All rights reserved.