|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jcp.xml.dsig.internal.dom.DOMStructure
org.apache.jcp.xml.dsig.internal.dom.DOMRetrievalMethod
public final class DOMRetrievalMethod
DOM-based implementation of RetrievalMethod.
| Constructor Summary | |
|---|---|
DOMRetrievalMethod(Element rmElem,
XMLCryptoContext context,
Provider provider)
Creates a DOMRetrievalMethod from an element. |
|
DOMRetrievalMethod(String uri,
String type,
List<? extends Transform> 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
Transforms. |
XMLStructure |
dereferenceAsXMLStructure(XMLCryptoContext context)
|
boolean |
equals(Object obj)
|
Node |
getHere()
Returns the here node. |
List |
getTransforms()
Returns an unmodifiable
list of Transforms of this RetrievalMethod. |
String |
getType()
Returns the type of data referenced by this URI. |
String |
getURI()
Returns the URI of the referenced KeyInfo information. |
int |
hashCode()
|
void |
marshal(Node parent,
String dsPrefix,
DOMCryptoContext context)
|
| Methods inherited from class org.apache.jcp.xml.dsig.internal.dom.DOMStructure |
|---|
isFeatureSupported |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.xml.crypto.XMLStructure |
|---|
isFeatureSupported |
| Constructor Detail |
|---|
public DOMRetrievalMethod(String uri,
String type,
List<? extends Transform> transforms)
DOMRetrievalMethod containing the specified
URIReference and List of Transforms.
uri - the URItype - the typetransforms - a list of Transforms. 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(Element rmElem,
XMLCryptoContext context,
Provider provider)
throws MarshalException
DOMRetrievalMethod from an element.
rmElem - a RetrievalMethod element
MarshalException| Method Detail |
|---|
public String getURI()
RetrievalMethodKeyInfo information.
getURI in interface RetrievalMethodgetURI in interface URIReferenceKeyInfo information in
RFC 2396 format (never null)public String getType()
URIReference
getType in interface URIReferencenull
if not specified)public List getTransforms()
RetrievalMethodunmodifiable
list of Transforms of this RetrievalMethod.
getTransforms in interface RetrievalMethodTransform objects (may be
empty but never null).
public void marshal(Node parent,
String dsPrefix,
DOMCryptoContext context)
throws MarshalException
marshal in class DOMStructureMarshalExceptionpublic Node getHere()
DOMURIReference
getHere in interface DOMURIReference
public Data dereference(XMLCryptoContext context)
throws URIReferenceException
RetrievalMethodKeyInfo information referenced by this
RetrievalMethod and applies the specified
Transforms.
dereference in interface RetrievalMethodcontext - 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 dereferencing
public XMLStructure dereferenceAsXMLStructure(XMLCryptoContext context)
throws URIReferenceException
URIReferenceExceptionpublic boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||