Home » openjdk-7 » javax » xml » crypto » dom » [javadoc | source]
javax.xml.crypto.dom
public class: DOMCryptoContext [javadoc | source]
java.lang.Object
   javax.xml.crypto.dom.DOMCryptoContext

All Implemented Interfaces:
    XMLCryptoContext

Direct Known Subclasses:
    DOMSignContext, DOMValidateContext

This class provides a DOM-specific implementation of the XMLCryptoContext interface. It also includes additional methods that are specific to a DOM-based implementation for registering and retrieving elements that contain attributes of type ID.
Constructor:
 protected DOMCryptoContext() 
Method from javax.xml.crypto.dom.DOMCryptoContext Summary:
get,   getBaseURI,   getDefaultNamespacePrefix,   getElementById,   getKeySelector,   getNamespacePrefix,   getProperty,   getURIDereferencer,   iterator,   put,   putNamespacePrefix,   setBaseURI,   setDefaultNamespacePrefix,   setIdAttributeNS,   setKeySelector,   setProperty,   setURIDereferencer
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from javax.xml.crypto.dom.DOMCryptoContext Detail:
 public Object get(Object key) 
    This implementation uses an internal HashMap to get the object that the specified key maps to.
 public String getBaseURI() 
 public String getDefaultNamespacePrefix() 
 public Element getElementById(String idValue) 
    Returns the Element with the specified ID attribute value.

    This implementation uses an internal HashMap to get the element that the specified attribute value maps to.

 public KeySelector getKeySelector() 
 public String getNamespacePrefix(String namespaceURI,
    String defaultPrefix) 
    This implementation uses an internal HashMap to get the prefix that the specified URI maps to. It returns the defaultPrefix if it maps to null.
 public Object getProperty(String name) 
    This implementation uses an internal HashMap to get the object that the specified name maps to.
 public URIDereferencer getURIDereferencer() 
 public Iterator iterator() 
    Returns a read-only iterator over the set of Id/Element mappings of this DOMCryptoContext. Attempts to modify the set via the Iterator#remove method throw an UnsupportedOperationException. The mappings are returned in no particular order. Each element in the iteration is represented as a java.util.Map.Entry . If the DOMCryptoContext is modified while an iteration is in progress, the results of the iteration are undefined.
 public Object put(Object key,
    Object value) 
    This implementation uses an internal HashMap to map the key to the specified object.
 public String putNamespacePrefix(String namespaceURI,
    String prefix) 
    This implementation uses an internal HashMap to map the URI to the specified prefix.
 public  void setBaseURI(String baseURI) 
 public  void setDefaultNamespacePrefix(String defaultPrefix) 
 public  void setIdAttributeNS(Element element,
    String namespaceURI,
    String localName) 
    Registers the element's attribute specified by the namespace URI and local name to be of type ID. The attribute must have a non-empty value.

    This implementation uses an internal HashMap to map the attribute's value to the specified element.

 public  void setKeySelector(KeySelector ks) 
 public Object setProperty(String name,
    Object value) 
    This implementation uses an internal HashMap to map the name to the specified object.
 public  void setURIDereferencer(URIDereferencer dereferencer)