public class RetrievalMethod extends BaseElement implements KeyInfoElement
A RetrievalMethod element within KeyInfo is used to convey a reference to KeyInfo information that is stored at another location.
RetrievalMethod uses the same syntax and dereferencing behavior as Reference's URI, and "The Reference Processing Model" except that there is no DigestMethod or DigestValue child elements and presence of the URI is mandatory.
Type is an optional identifier for the type of data retrieved after all transforms have been applied. The result of dereferencing a RetrievalMethod Reference for all KeyInfo types defined by this specification with a corresponding XML structure is an XML element or document with that element as the root. The rawX509Certificate KeyInfo (for which there is no XML structure) returns a binary X509 certificate.
The following schema fragment specifies the expected content contained within this class.
<complexType name="RetrievalMethodType">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element ref="{http://www.w3.org/2000/09/xmldsig#}Transforms" minOccurs="0"/>
</sequence>
<attribute name="URI" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
<attribute name="Type" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
</restriction>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TYPE_RAWX509 |
mContext, mElement, mId| Constructor and Description |
|---|
RetrievalMethod(org.w3c.dom.Element aElement,
Context aContext)
Construct RetrievalMethod from existing
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getLocalName() |
byte[] |
getRawX509() |
Transforms |
getTransforms() |
java.lang.String |
getType() |
java.lang.String |
getURI() |
KeyInfoElement |
resolve()
Dereference RetrievalMethod URI, appy transforms and
|
addBigIntegerElement, addLineBreak, addLineBreak, checkNamespace, createElement, generateAndSetId, getAttribute, getBigIntegerFromElement, getChildText, getContext, getDocument, getElement, getId, getNamespace, insertBase64EncodedElement, insertElement, insertTextElement, selectChildElement, selectChildren, setIdpublic static final java.lang.String TYPE_RAWX509
public RetrievalMethod(org.w3c.dom.Element aElement,
Context aContext)
throws XMLSignatureException
aElement - xml elementaContext - according to contextXMLSignatureException - when structure is invalid or can not be
resolved appropriatelypublic java.lang.String getURI()
public java.lang.String getType()
public Transforms getTransforms()
public KeyInfoElement resolve() throws XMLSignatureException
XMLSignatureException - if any error occurred over
derefencing, transformation and final construction phasepublic byte[] getRawX509()
public java.lang.String getLocalName()
getLocalName in class BaseElementCopyright © 2025. All rights reserved.