public final class DOMRetrievalMethod extends DOMStructure implements RetrievalMethod, DOMURIReference
Constructor and Description |
---|
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. |
Modifier and Type | Method and Description |
---|---|
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) |
Node |
getHere()
Returns the here node.
|
List |
getTransforms()
|
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) |
isFeatureSupported
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
isFeatureSupported
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 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 ProcessingNullPointerException
- 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 elementMarshalException
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
getTransforms
in interface RetrievalMethod
Transform
objects (may be
empty but never null
).public void marshal(Node parent, String dsPrefix, DOMCryptoContext context) throws MarshalException
marshal
in class DOMStructure
MarshalException
public 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
Copyright © 2000–2017 The Apache Software Foundation. All rights reserved.