| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public class DOMCryptoContext extends Object implements XMLCryptoContext
This class provides a DOM-specific implementation of the {@link 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 Summary | |
---|---|
protected |
Default constructor. |
Method Summary | |
---|---|
Object |
This implementation uses an internal java.util.HashMap to get the object that the specified key maps to. |
String |
|
String |
|
Element |
getElementById(String idValue) Returns the Element with the specified ID attribute value.
|
KeySelector |
|
String |
getNamespacePrefix(String namespaceURI, String defaultPrefix) This implementation uses an internal java.util.HashMap to get the prefix that the specified URI maps to. |
Object |
getProperty(String name) This implementation uses an internal java.util.HashMap to get the object that the specified name maps to. |
URIDereferencer |
|
Iterator |
iterator() Returns a read-only iterator over the set of Id/Element mappings of this DOMCryptoContext .
|
Object |
This implementation uses an internal java.util.HashMap to map the key to the specified object. |
String |
putNamespacePrefix(String namespaceURI, String prefix) This implementation uses an internal java.util.HashMap to map the URI to the specified prefix. |
void |
setBaseURI(String baseURI) |
void |
setDefaultNamespacePrefix(String defaultPrefix) |
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. |
void |
|
Object |
setProperty(String name, Object value) This implementation uses an internal java.util.HashMap to map the name to the specified object. |
void |
setURIDereferencer(URIDereferencer dereferencer) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected DOMCryptoContext()
Method Detail |
---|
public Object get(Object key)
key
public String getBaseURI()
public String getDefaultNamespacePrefix()
public Element getElementById(String idValue)
Element
with the specified ID attribute value.
This implementation uses an internal {@link HashMap} to get the element that the specified attribute value maps to.
idValue
- the value of the IDElement
with the specified ID attribute value,
or null
if none.public KeySelector getKeySelector()
public String getNamespacePrefix(String namespaceURI, String defaultPrefix)
defaultPrefix
if it maps to null
.
namespaceURI
defaultPrefix
public Object getProperty(String name)
name
public URIDereferencer getURIDereferencer()
public Iterator iterator()
DOMCryptoContext
. Attempts to modify the set via the
{@link Iterator#remove} method throw an
UnsupportedOperationException
. The mappings are returned
in no particular order. Each element in the iteration is represented as a
{@link 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)
key
value
public String putNamespacePrefix(String namespaceURI, String prefix)
namespaceURI
prefix
public void setBaseURI(String baseURI)
baseURI
public void setDefaultNamespacePrefix(String defaultPrefix)
defaultPrefix
public void setIdAttributeNS(Element element, String namespaceURI, String localName)
This implementation uses an internal {@link HashMap} to map the attribute's value to the specified element.
element
- the elementnamespaceURI
- the namespace URI of the attribute (specify
null
if not applicable)localName
- the local name of the attributepublic void setKeySelector(KeySelector ks)
ks
public Object setProperty(String name, Object value)
name
value
public void setURIDereferencer(URIDereferencer dereferencer)
dereferencer
| |||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |