public final class DOMRetrievalMethod extends DOMStructure implements javax.xml.crypto.dsig.keyinfo.RetrievalMethod, javax.xml.crypto.dom.DOMURIReference
Constructor and Description |
---|
DOMRetrievalMethod(org.w3c.dom.Element rmElem,
javax.xml.crypto.XMLCryptoContext context,
java.security.Provider provider)
Creates a
DOMRetrievalMethod from an element. |
DOMRetrievalMethod(java.lang.String uri,
java.lang.String type,
java.util.List<? extends javax.xml.crypto.dsig.Transform> transforms)
Creates a
DOMRetrievalMethod containing the specified
URIReference and List of Transforms. |
Modifier and Type | Method and Description |
---|---|
javax.xml.crypto.Data |
dereference(javax.xml.crypto.XMLCryptoContext context) |
javax.xml.crypto.XMLStructure |
dereferenceAsXMLStructure(javax.xml.crypto.XMLCryptoContext context) |
boolean |
equals(java.lang.Object obj) |
org.w3c.dom.Node |
getHere() |
java.util.List |
getTransforms() |
java.lang.String |
getType() |
java.lang.String |
getURI() |
void |
marshal(org.w3c.dom.Node parent,
java.lang.String dsPrefix,
javax.xml.crypto.dom.DOMCryptoContext context) |
isFeatureSupported
public DOMRetrievalMethod(java.lang.String uri, java.lang.String type, java.util.List<? extends javax.xml.crypto.dsig.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.java.lang.IllegalArgumentException
- if the format of uri
is
invalid, as specified by Reference's URI attribute in the W3C
specification for XML-Signature Syntax and Processingjava.lang.NullPointerException
- if uriReference
is null
java.lang.ClassCastException
- if transforms
contains any
entries that are not of type Transform
public DOMRetrievalMethod(org.w3c.dom.Element rmElem, javax.xml.crypto.XMLCryptoContext context, java.security.Provider provider) throws javax.xml.crypto.MarshalException
DOMRetrievalMethod
from an element.rmElem
- a RetrievalMethod elementjavax.xml.crypto.MarshalException
public java.lang.String getURI()
getURI
in interface javax.xml.crypto.dsig.keyinfo.RetrievalMethod
getURI
in interface javax.xml.crypto.URIReference
public java.lang.String getType()
getType
in interface javax.xml.crypto.URIReference
public java.util.List getTransforms()
getTransforms
in interface javax.xml.crypto.dsig.keyinfo.RetrievalMethod
public void marshal(org.w3c.dom.Node parent, java.lang.String dsPrefix, javax.xml.crypto.dom.DOMCryptoContext context) throws javax.xml.crypto.MarshalException
marshal
in class DOMStructure
javax.xml.crypto.MarshalException
public org.w3c.dom.Node getHere()
getHere
in interface javax.xml.crypto.dom.DOMURIReference
public javax.xml.crypto.Data dereference(javax.xml.crypto.XMLCryptoContext context) throws javax.xml.crypto.URIReferenceException
dereference
in interface javax.xml.crypto.dsig.keyinfo.RetrievalMethod
javax.xml.crypto.URIReferenceException
public javax.xml.crypto.XMLStructure dereferenceAsXMLStructure(javax.xml.crypto.XMLCryptoContext context) throws javax.xml.crypto.URIReferenceException
javax.xml.crypto.URIReferenceException
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object