|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jcp.xml.dsig.internal.dom.DOMStructure
org.jcp.xml.dsig.internal.dom.DOMRetrievalMethod
public final class DOMRetrievalMethod
Disabled: no SafeJ information.
DOM-based implementation of RetrievalMethod.
Constructor Summary | |
---|---|
DOMRetrievalMethod(org.w3c.dom.Element rmElem,
XMLCryptoContext context,
Provider provider)
Creates a DOMRetrievalMethod from an element. |
|
DOMRetrievalMethod(String uri,
String type,
List transforms)
Creates a DOMRetrievalMethod containing the specified
URIReference and List of Transforms. |
Method Summary | |
---|---|
Data |
dereference(XMLCryptoContext context)
Dereferences the KeyInfo information referenced by this
RetrievalMethod and applies the specified
Transform s. |
XMLStructure |
dereferenceAsXMLStructure(XMLCryptoContext context)
|
boolean |
equals(Object obj)
Indicates whether some other object is "equal to" this one. |
org.w3c.dom.Node |
getHere()
Returns the here node. |
List |
getTransforms()
Returns an unmodifiable
list of Transform s of this RetrievalMethod . |
String |
getType()
Returns the type of data referenced by this URI. |
String |
getURI()
Returns the URI of the referenced KeyInfo information. |
void |
marshal(org.w3c.dom.Node parent,
String dsPrefix,
DOMCryptoContext context)
|
Methods inherited from class org.jcp.xml.dsig.internal.dom.DOMStructure |
---|
isFeatureSupported |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.xml.crypto.XMLStructure |
---|
isFeatureSupported |
Constructor Detail |
---|
public DOMRetrievalMethod(String uri, String type, List transforms)
DOMRetrievalMethod
containing the specified
URIReference and List of Transforms.
uri
- the URItype
- the typetransforms
- a list of Transform
s. The list is defensively
copied to prevent subsequent modification. May be null
or empty.
IllegalArgumentException
- if the format of uri
is
invalid, as specified by Reference's URI attribute in the W3C
specification for XML-Signature Syntax and Processing
NullPointerException
- if uriReference
is null
ClassCastException
- if transforms
contains any
entries that are not of type Transform
public DOMRetrievalMethod(org.w3c.dom.Element rmElem, XMLCryptoContext context, Provider provider) throws MarshalException
DOMRetrievalMethod
from an element.
rmElem
- a RetrievalMethod element
MarshalException
Method Detail |
---|
public String getURI()
RetrievalMethod
KeyInfo
information.
getURI
in interface RetrievalMethod
getURI
in interface URIReference
KeyInfo
information in
RFC 2396 format (never null
)public String getType()
URIReference
getType
in interface URIReference
null
if not specified)public List getTransforms()
RetrievalMethod
unmodifiable
list
of Transform
s of this RetrievalMethod
.
getTransforms
in interface RetrievalMethod
Transform
objects (may be
empty but never null
).public void marshal(org.w3c.dom.Node parent, String dsPrefix, DOMCryptoContext context) throws MarshalException
marshal
in class DOMStructure
MarshalException
public org.w3c.dom.Node getHere()
DOMURIReference
getHere
in interface DOMURIReference
public Data dereference(XMLCryptoContext context) throws URIReferenceException
RetrievalMethod
KeyInfo
information referenced by this
RetrievalMethod
and applies the specified
Transform
s.
dereference
in interface RetrievalMethod
context
- an XMLCryptoContext
that may contain
additional useful information for dereferencing the URI. The
context's baseURI
and dereferencer
parameters (if specified) are used to resolve and dereference this
RetrievalMethod
Data
object representing the raw contents of the
KeyInfo
information referenced by this
RetrievalMethod
. It is the caller's responsibility to
convert the returned data to an appropriate
KeyInfo
object.
URIReferenceException
- if there is an error while dereferencingpublic XMLStructure dereferenceAsXMLStructure(XMLCryptoContext context) throws URIReferenceException
URIReferenceException
public boolean equals(Object obj)
Object
The equals
method implements an equivalence relation
on non-null object references:
x
, x.equals(x)
should return
true
.
x
and y
, x.equals(y)
should return true
if and only if
y.equals(x)
returns true
.
x
, y
, and z
, if
x.equals(y)
returns true
and
y.equals(z)
returns true
, then
x.equals(z)
should return true
.
x
and y
, multiple invocations of
x.equals(y)
consistently return true
or consistently return false
, provided no
information used in equals
comparisons on the
objects is modified.
x
,
x.equals(null)
should return false
.
The equals
method for class Object
implements
the most discriminating possible equivalence relation on objects;
that is, for any non-null reference values x
and
y
, this method returns true
if and only
if x
and y
refer to the same object
(x == y
has the value true
).
Note that it is generally necessary to override the hashCode
method whenever this method is overridden, so as to maintain the
general contract for the hashCode
method, which states
that equal objects must have equal hash codes.
equals
in class Object
obj
- the reference object with which to compare.
true
if this object is the same as the obj
argument; false
otherwise.Object.hashCode()
,
HashMap
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |