XML Security, 1.6

com.ibm.xml.enc.dom
Class DOMURIDereferencer

java.lang.Object
  extended by com.ibm.xml.enc.dom.DOMURIDereferencer
All Implemented Interfaces:
URIDereferencer

public class DOMURIDereferencer
extends java.lang.Object
implements URIDereferencer

The default implementation of URIDereferencer. This implementation supports no URI which can not be represented java.net.URL.


Field Summary
(package private) static URIDereferencer INSTANCE
           
 
Method Summary
 Data dereference(URIReference reference, XMLCryptoContext context)
          Dereferences the specified URIReference and returns the dereferenced data.
static java.lang.String getIdAttributeValue(org.w3c.dom.Element el)
          Return the ID value of the element if any.
static org.w3c.dom.Element resolveId(DOMCryptoContext idMap, org.w3c.dom.Document thisDoc, org.w3c.dom.Document doc, java.lang.String id)
           
static org.w3c.dom.Element traverseElement(org.w3c.dom.Element el, java.lang.String id)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

static final URIDereferencer INSTANCE
Method Detail

dereference

public Data dereference(URIReference reference,
                        XMLCryptoContext context)
                 throws URIReferenceException
Description copied from interface: URIDereferencer
Dereferences the specified URIReference and returns the dereferenced data.

Specified by:
dereference in interface URIDereferencer
Parameters:
reference - the URIReference
context - an XMLCryptoContext that may contain additional useful information for dereferencing the URI. This implementation should dereference the specified URIReference against the context's baseURI parameter, if specified.
Returns:
the dereferenced data
Throws:
URIReferenceException - if an exception occurs while dereferencing the specified uriReference

resolveId

public static org.w3c.dom.Element resolveId(DOMCryptoContext idMap,
                                            org.w3c.dom.Document thisDoc,
                                            org.w3c.dom.Document doc,
                                            java.lang.String id)

traverseElement

public static org.w3c.dom.Element traverseElement(org.w3c.dom.Element el,
                                                  java.lang.String id)

getIdAttributeValue

public static java.lang.String getIdAttributeValue(org.w3c.dom.Element el)
Return the ID value of the element if any.

Returns:
null if it is not found.

XML Security, 1.6

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