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 aDOMRetrievalMethodcontaining the specified URIReference and List of Transforms.DOMRetrievalMethod(Element rmElem, XMLCryptoContext context, Provider provider) Creates aDOMRetrievalMethodfrom an element. -
Method Summary
Modifier and TypeMethodDescriptiondereference(XMLCryptoContext context) booleangetHere()getType()getURI()inthashCode()voidmarshal(Node parent, String dsPrefix, DOMCryptoContext context) Methods inherited from class DOMStructure
isFeatureSupportedMethods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface XMLStructure
isFeatureSupported
-
Field Details
-
transforms
-
uri
-
type
-
here
-
-
Constructor Details
-
DOMRetrievalMethod
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 Details
-
getURI
- Specified by:
getURIin interfaceRetrievalMethod- Specified by:
getURIin interfaceURIReference
-
getType
- Specified by:
getTypein interfaceURIReference
-
getTransforms
- Specified by:
getTransformsin interfaceRetrievalMethod
-
marshal
- Specified by:
marshalin classDOMStructure- Throws:
MarshalException
-
getHere
- Specified by:
getHerein interfaceDOMURIReference
-
dereference
- Specified by:
dereferencein interfaceRetrievalMethod- Throws:
URIReferenceException
-
dereferenceAsXMLStructure
public XMLStructure dereferenceAsXMLStructure(XMLCryptoContext context) throws URIReferenceException - Throws:
URIReferenceException
-
equals
-
hashCode
-