Methods Summary |
---|
public java.lang.Object | get(java.lang.Object key)Returns the value to which this context maps the specified key.
More formally, if this context contains a mapping from a key
k to a value v such that
(key==null ? k==null : key.equals(k)) , then this method
returns v ; otherwise it returns null . (There
can be at most one such mapping.)
This method is useful for retrieving arbitrary information that is
specific to the cryptographic operation that this context is used for.
|
public java.lang.String | getBaseURI()Returns the base URI.
|
public java.lang.String | getDefaultNamespacePrefix()Returns the default namespace prefix. The default namespace prefix
is the prefix for all namespace URIs not explicitly set by the
{@link #putNamespacePrefix putNamespacePrefix} method.
|
public javax.xml.crypto.KeySelector | getKeySelector()Returns the key selector for finding a key.
|
public java.lang.String | getNamespacePrefix(java.lang.String namespaceURI, java.lang.String defaultPrefix)Returns the namespace prefix that the specified namespace URI is
associated with. Returns the specified default prefix if the specified
namespace URI has not been bound to a prefix. To bind a namespace URI
to a prefix, call the {@link #putNamespacePrefix putNamespacePrefix}
method.
|
public java.lang.Object | getProperty(java.lang.String name)Returns the value of the specified property.
|
public javax.xml.crypto.URIDereferencer | getURIDereferencer()Returns a URIDereferencer that is used to dereference
{@link URIReference}s.
|
public java.lang.Object | put(java.lang.Object key, java.lang.Object value)Associates the specified value with the specified key in this context.
If the context previously contained a mapping for this key, the old
value is replaced by the specified value.
This method is useful for storing arbitrary information that is
specific to the cryptographic operation that this context is used for.
|
public java.lang.String | putNamespacePrefix(java.lang.String namespaceURI, java.lang.String prefix)Maps the specified namespace URI to the specified prefix. If there is
already a prefix associated with the specified namespace URI, the old
prefix is replaced by the specified prefix.
|
public void | setBaseURI(java.lang.String baseURI)Sets the base URI.
|
public void | setDefaultNamespacePrefix(java.lang.String defaultPrefix)Sets the default namespace prefix. This sets the namespace prefix for
all namespace URIs not explicitly set by the {@link #putNamespacePrefix
putNamespacePrefix} method.
|
public void | setKeySelector(javax.xml.crypto.KeySelector ks)Sets the key selector for finding a key.
|
public java.lang.Object | setProperty(java.lang.String name, java.lang.Object value)Sets the specified property.
|
public void | setURIDereferencer(javax.xml.crypto.URIDereferencer dereferencer)Sets a URIDereferencer that is used to dereference
{@link URIReference}s. The specified URIDereferencer
is used in place of an implementation's default
URIDereferencer .
|