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) |
isFeatureSupportedpublic 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 Transforms. 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 nulljava.lang.ClassCastException - if transforms contains any
entries that are not of type Transformpublic 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.MarshalExceptionpublic java.lang.String getURI()
getURI in interface javax.xml.crypto.dsig.keyinfo.RetrievalMethodgetURI in interface javax.xml.crypto.URIReferencepublic java.lang.String getType()
getType in interface javax.xml.crypto.URIReferencepublic java.util.List getTransforms()
getTransforms in interface javax.xml.crypto.dsig.keyinfo.RetrievalMethodpublic 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 DOMStructurejavax.xml.crypto.MarshalExceptionpublic org.w3c.dom.Node getHere()
getHere in interface javax.xml.crypto.dom.DOMURIReferencepublic javax.xml.crypto.Data dereference(javax.xml.crypto.XMLCryptoContext context)
throws javax.xml.crypto.URIReferenceException
dereference in interface javax.xml.crypto.dsig.keyinfo.RetrievalMethodjavax.xml.crypto.URIReferenceExceptionpublic javax.xml.crypto.XMLStructure dereferenceAsXMLStructure(javax.xml.crypto.XMLCryptoContext context)
throws javax.xml.crypto.URIReferenceException
javax.xml.crypto.URIReferenceExceptionpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object