java.lang.Object | |
↳ | javax.xml.crypto.dom.DOMCryptoContext |
![]() |
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.
Protected Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Default constructor.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
This implementation uses an internal
HashMap to get the object
that the specified key maps to. | |||||||||||
Returns the base URI.
| |||||||||||
Returns the default namespace prefix.
| |||||||||||
Returns the
Element with the specified ID attribute value. | |||||||||||
Returns the key selector for finding a key.
| |||||||||||
This implementation uses an internal
HashMap to get the prefix
that the specified URI maps to. | |||||||||||
This implementation uses an internal
HashMap to get the object
that the specified name maps to. | |||||||||||
Returns a
URIDereferencer that is used to dereference
URIReference s. | |||||||||||
Returns a read-only iterator over the set of Id/Element mappings of
this
DOMCryptoContext . | |||||||||||
This implementation uses an internal
HashMap to map the key
to the specified object. | |||||||||||
This implementation uses an internal
HashMap to map the URI
to the specified prefix. | |||||||||||
Sets the base URI.
| |||||||||||
Sets the default namespace prefix.
| |||||||||||
Registers the element's attribute specified by the namespace URI and
local name to be of type ID.
| |||||||||||
Sets the key selector for finding a key.
| |||||||||||
This implementation uses an internal
HashMap to map the name
to the specified object. | |||||||||||
Sets a
URIDereferencer that is used to dereference
URIReference s. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Default constructor. (For invocation by subclass constructors).
This implementation uses an internal HashMap
to get the object
that the specified key maps to.
key | the key whose associated value is to be returned |
---|
null
if there is no mapping for the keyReturns the default namespace prefix. The default namespace prefix
is the prefix for all namespace URIs not explicitly set by the
putNamespacePrefix
method.
null
if none has
been set.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.
idValue | the value of the ID |
---|
Element
with the specified ID attribute value,
or null
if none.NullPointerException | if idValue is null |
---|
Returns the key selector for finding a key.
null
if not specifiedThis implementation uses an internal HashMap
to get the prefix
that the specified URI maps to. It returns the defaultPrefix
if it maps to null
.
namespaceURI | a namespace URI |
---|---|
defaultPrefix | the prefix to be returned in the event that the the specified namespace URI has not been bound to a prefix. |
defaultPrefix
if the URI is not registered. If
the namespace URI is registered but has no prefix, an empty string
(""
) is returned.NullPointerException |
---|
This implementation uses an internal HashMap
to get the object
that the specified name maps to.
name | the name of the property |
---|
null
if it does not have a valueNullPointerException |
---|
Returns a URIDereferencer
that is used to dereference
URIReference
s.
URIDereferencer
, or null
if not
specifiedReturns a read-only iterator over the set of Id/Element mappings of
this DOMCryptoContext
. Attempts to modify the set via the
remove()
method throw an
UnsupportedOperationException
. The mappings are returned
in no particular order. Each element in the iteration is represented as a
Map.Entry
. If the DOMCryptoContext
is
modified while an iteration is in progress, the results of the
iteration are undefined.
This implementation uses an internal HashMap
to map the key
to the specified object.
key | key with which the specified value is to be associated with |
---|---|
value | value to be associated with the specified key |
null
if there was no mapping for the keyIllegalArgumentException |
---|
This implementation uses an internal HashMap
to map the URI
to the specified prefix.
namespaceURI | a namespace URI |
---|---|
prefix | a namespace prefix (or null to remove any
existing mapping). Specifying the empty string ("" )
binds no prefix to the namespace URI. |
null
if there was noneNullPointerException |
---|
Sets the base URI.
baseURI | the base URI, or null to remove current
value |
---|
IllegalArgumentException |
---|
Sets the default namespace prefix. This sets the namespace prefix for
all namespace URIs not explicitly set by the putNamespacePrefix
method.
defaultPrefix | the default namespace prefix, or null
to remove the current setting. Specify the empty string
("" ) to bind no prefix. |
---|
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.
element | the element |
---|---|
namespaceURI | the namespace URI of the attribute (specify
null if not applicable) |
localName | the local name of the attribute |
IllegalArgumentException | if localName is not an
attribute of the specified element or it does not contain a specific
value |
---|---|
NullPointerException | if element or
localName is null |
Sets the key selector for finding a key.
ks | the key selector, or null to remove the current
setting |
---|
This implementation uses an internal HashMap
to map the name
to the specified object.
name | the name of the property |
---|---|
value | the value of the property to be set |
null
if it did not have a valueNullPointerException |
---|
Sets a URIDereferencer
that is used to dereference
URIReference
s. The specified URIDereferencer
is used in place of an implementation's default
URIDereferencer
.
dereferencer | the URIDereferencer , or
null to remove any current setting |
---|