This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


javax.xml.crypto.dsig
interface XMLSignature.SignatureValue

All Superinterfaces:
XMLStructure

public static interface XMLSignature.SignatureValue
extends XMLStructure

A representation of the XML SignatureValue element as defined in the W3C Recommendation for XML-Signature Syntax and Processing. The XML Schema Definition is defined as:

   <element name="SignatureValue" type="ds:SignatureValueType"/>
     <complexType name="SignatureValueType">
       <simpleContent>
         <extension base="base64Binary">
           <attribute name="Id" type="ID" use="optional"/>
         </extension>
       </simpleContent>
     </complexType>
 


Method Summary
 String

          Returns the optional Id attribute of this SignatureValue, which permits this element to be referenced from elsewhere.
 byte[]

          Returns the signature value of this SignatureValue.
 boolean
validate(XMLValidateContext validateContext)

          Validates the signature value.
 
Methods inherited from class javax.xml.crypto.XMLStructure
isFeatureSupported
 

Method Detail

getId

public String getId()
Returns the optional Id attribute of this SignatureValue, which permits this element to be referenced from elsewhere.

Returns:
the Id attribute (may be null if not specified)

getValue

public byte[] getValue()
Returns the signature value of this 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
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.

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


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention, which is derived from the offical documentation that contains this copyright notice:
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
The official Sun™ documentation can be found here at http://java.sun.com/javase/6/docs/api/.