com.ibm.xml.enc.dom
Class DOMURIDereferencer
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
static final URIDereferencer INSTANCE
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.
Portions Copyright 2003, 2012 IBM Corporation.
Portions Copyright 2003, 2012 Oracle and/or its affiliates.