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.dom
class DOMValidateContext

java.lang.Object extended by javax.xml.crypto.dom.DOMCryptoContext extended by javax.xml.crypto.dsig.dom.DOMValidateContext
All Implemented Interfaces:
XMLCryptoContext, XMLValidateContext

public class DOMValidateContext
extends DOMCryptoContext
implements XMLValidateContext

A DOM-specific {@link XMLValidateContext}. This class contains additional methods to specify the location in a DOM tree where an {@link XMLSignature} is to be unmarshalled and validated from.

Note that the behavior of an unmarshalled XMLSignature is undefined if the contents of the underlying DOM tree are modified by the caller after the XMLSignature is created.

Also, note that DOMValidateContext instances can contain information and state specific to the XML signature structure it is used with. The results are unpredictable if a DOMValidateContext is used with different signature structures (for example, you should not use the same DOMValidateContext instance to validate two different {@link XMLSignature} objects).


Constructor Summary
DOMValidateContext(Key validatingKey, Node node)

          Creates a DOMValidateContext containing the specified key and node.

          Creates a DOMValidateContext containing the specified key selector and node.
 
Method Summary
 Node

          Returns the node.
 void
setNode(Node node)

          Sets the node.
 
Methods inherited from class javax.xml.crypto.dom.DOMCryptoContext
get, getBaseURI, getDefaultNamespacePrefix, getElementById, getKeySelector, getNamespacePrefix, getProperty, getURIDereferencer, iterator, put, putNamespacePrefix, setBaseURI, setDefaultNamespacePrefix, setIdAttributeNS, setKeySelector, setProperty, setURIDereferencer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DOMValidateContext

public DOMValidateContext(Key validatingKey,
                          Node node)
Creates a DOMValidateContext containing the specified key and node. The validating key will be stored in a {@link KeySelector#singletonKeySelector singleton KeySelector} that is returned when the {@link #getKeySelector getKeySelector} method is called.

Parameters:
validatingKey - the validating key
node - the node

DOMValidateContext

public DOMValidateContext(KeySelector ks,
                          Node node)
Creates a DOMValidateContext containing the specified key selector and node.

Parameters:
ks - a key selector for finding a validation key
node - the node
Method Detail

getNode

public Node getNode()
Returns the node.

Returns:
the node (never null)

setNode

public void setNode(Node node)
Sets the node.

Parameters:
node - the node


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/.