Class DOMRetrievalMethod
java.lang.Object
org.apache.jcp.xml.dsig.internal.dom.DOMStructure
org.apache.jcp.xml.dsig.internal.dom.DOMRetrievalMethod
- All Implemented Interfaces:
DOMURIReference
,RetrievalMethod
,URIReference
,XMLStructure
public final class DOMRetrievalMethod
extends DOMStructure
implements RetrievalMethod, DOMURIReference
DOM-based implementation of RetrievalMethod.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDOMRetrievalMethod
(String uri, String type, List<? extends Transform> transforms) Creates aDOMRetrievalMethod
containing the specified URIReference and List of Transforms.DOMRetrievalMethod
(Element rmElem, XMLCryptoContext context, Provider provider) Creates aDOMRetrievalMethod
from an element. -
Method Summary
Modifier and TypeMethodDescriptiondereference
(XMLCryptoContext context) boolean
getHere()
getType()
getURI()
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
-
Field Details
-
transforms
-
uri
-
type
-
here
-
-
Constructor Details
-
DOMRetrievalMethod
Creates aDOMRetrievalMethod
containing the specified URIReference and List of Transforms.- Parameters:
uri
- the URItype
- the typetransforms
- a list ofTransform
s. The list is defensively copied to prevent subsequent modification. May benull
or empty.- Throws:
IllegalArgumentException
- if the format ofuri
is invalid, as specified by Reference's URI attribute in the W3C specification for XML-Signature Syntax and ProcessingNullPointerException
- ifuriReference
isnull
ClassCastException
- iftransforms
contains any entries that are not of typeTransform
-
DOMRetrievalMethod
public DOMRetrievalMethod(Element rmElem, XMLCryptoContext context, Provider provider) throws MarshalException Creates aDOMRetrievalMethod
from an element.- Parameters:
rmElem
- a RetrievalMethod element- Throws:
MarshalException
-
-
Method Details
-
getURI
- Specified by:
getURI
in interfaceRetrievalMethod
- Specified by:
getURI
in interfaceURIReference
-
getType
- Specified by:
getType
in interfaceURIReference
-
getTransforms
- Specified by:
getTransforms
in interfaceRetrievalMethod
-
marshal
- Specified by:
marshal
in classDOMStructure
- Throws:
MarshalException
-
getHere
- Specified by:
getHere
in interfaceDOMURIReference
-
dereference
- Specified by:
dereference
in interfaceRetrievalMethod
- Throws:
URIReferenceException
-
dereferenceAsXMLStructure
public XMLStructure dereferenceAsXMLStructure(XMLCryptoContext context) throws URIReferenceException - Throws:
URIReferenceException
-
equals
-
hashCode
public int hashCode()
-