XML Security, 1.6

com.ibm.xml.crypto.dsig.dom
Class XMLSignatureImpl.SignatureValueImpl

java.lang.Object
  extended by com.ibm.xml.crypto.dsig.dom.XMLStructureImpl
      extended by com.ibm.xml.crypto.dsig.dom.XMLSignatureImpl.SignatureValueImpl
All Implemented Interfaces:
XMLSignature.SignatureValue, XMLStructure
Enclosing class:
XMLSignatureImpl

static class XMLSignatureImpl.SignatureValueImpl
extends XMLStructureImpl
implements XMLSignature.SignatureValue


Field Summary
(package private)  XMLSignatureImpl parent
           
 
Fields inherited from class com.ibm.xml.crypto.dsig.dom.XMLStructureImpl
afactory
 
Constructor Summary
XMLSignatureImpl.SignatureValueImpl(AlgorithmFactory f, XMLSignatureImpl xsig)
           
 
Method Summary
 java.lang.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.
 boolean validate(XMLValidateContext vcontext)
          Validates the signature value.
 
Methods inherited from class com.ibm.xml.crypto.dsig.dom.XMLStructureImpl
isFeatureSupported
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.xml.crypto.XMLStructure
isFeatureSupported
 

Field Detail

parent

XMLSignatureImpl parent
Constructor Detail

XMLSignatureImpl.SignatureValueImpl

XMLSignatureImpl.SignatureValueImpl(AlgorithmFactory f,
                                    XMLSignatureImpl xsig)
Method Detail

getId

public java.lang.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 vcontext)
                 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:
vcontext - the validating context
Returns:
true if the signature was validated successfully; false otherwise
Throws:
XMLSignatureException - if an unexpected exception occurs while validating the signature

XML Security, 1.6

Portions Copyright 2003, 2012 IBM Corporation.
Portions Copyright 2003, 2012 Oracle and/or its affiliates.