Module org.apache.santuario.xmlsec
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.
-
-
Constructor Summary
Constructors Constructor Description DOMRetrievalMethod(String uri, String type, List<? extends Transform> transforms)Creates aDOMRetrievalMethodcontaining the specified URIReference and List of Transforms.DOMRetrievalMethod(Element rmElem, XMLCryptoContext context, Provider provider)Creates aDOMRetrievalMethodfrom an element.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Datadereference(XMLCryptoContext context)XMLStructuredereferenceAsXMLStructure(XMLCryptoContext context)booleanequals(Object obj)NodegetHere()List<Transform>getTransforms()StringgetType()StringgetURI()inthashCode()voidmarshal(Node parent, String dsPrefix, DOMCryptoContext context)-
Methods inherited from class org.apache.jcp.xml.dsig.internal.dom.DOMStructure
equalsContent, 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
-
DOMRetrievalMethod
public DOMRetrievalMethod(String uri, String type, List<? extends Transform> transforms)
Creates aDOMRetrievalMethodcontaining the specified URIReference and List of Transforms.- Parameters:
uri- the URItype- the typetransforms- a list ofTransforms. The list is defensively copied to prevent subsequent modification. May benullor empty.- Throws:
IllegalArgumentException- if the format ofuriis invalid, as specified by Reference's URI attribute in the W3C specification for XML-Signature Syntax and ProcessingNullPointerException- ifuriReferenceisnullClassCastException- iftransformscontains any entries that are not of typeTransform
-
DOMRetrievalMethod
public DOMRetrievalMethod(Element rmElem, XMLCryptoContext context, Provider provider) throws MarshalException
Creates aDOMRetrievalMethodfrom an element.- Parameters:
rmElem- a RetrievalMethod element- Throws:
MarshalException
-
-
Method Detail
-
getURI
public String getURI()
- Specified by:
getURIin interfaceRetrievalMethod- Specified by:
getURIin interfaceURIReference
-
getType
public String getType()
- Specified by:
getTypein interfaceURIReference
-
getTransforms
public List<Transform> getTransforms()
- Specified by:
getTransformsin interfaceRetrievalMethod
-
marshal
public void marshal(Node parent, String dsPrefix, DOMCryptoContext context) throws MarshalException
- Specified by:
marshalin classDOMStructure- Throws:
MarshalException
-
getHere
public Node getHere()
- Specified by:
getHerein interfaceDOMURIReference
-
dereference
public Data dereference(XMLCryptoContext context) throws URIReferenceException
- Specified by:
dereferencein interfaceRetrievalMethod- Throws:
URIReferenceException
-
dereferenceAsXMLStructure
public XMLStructure dereferenceAsXMLStructure(XMLCryptoContext context) throws URIReferenceException
- Throws:
URIReferenceException
-
-