public class RetrievalMethod extends ObjectReference implements KeyInfoData
An optional Type URI may be used to indicate the type of the
KeyInfo child object to be retrieved. Standard KeyInfo type URI
constants can be found in XMLURI,
including:
XMLURI.obj_DHKeyValueXMLURI.obj_DSAKeyValueXMLURI.obj_EncryptedKeyXMLURI.obj_KeyNameXMLURI.obj_MgmtDataXMLURI.obj_PGPDataXMLURI.obj_rawX509CertificateXMLURI.obj_RetrievalMethodXMLURI.obj_RSAKeyValueXMLURI.obj_SPKIDataXMLURI.obj_X509DataObjectReference.CIDResolver| Constructor and Description |
|---|
RetrievalMethod(org.w3c.dom.Element element)
Creates a new
RetrievalMethod instance
from the given Element node. |
RetrievalMethod(org.w3c.dom.Element element,
java.lang.String systemId)
Creates a new
RetrievalMethod instance
from the given Element node. |
| Modifier and Type | Method and Description |
|---|---|
KeyInfoData |
getKeyInfoData()
Dereferences this
RetrievalMethod by retrieving the
referenced key info, applying any Transforms and instantiating an
appropriate KeyInfoData class. |
java.lang.String |
getObjectType()
Returns the value of the Type attribute identifying
the type of the referenced object.
|
java.lang.String |
getType()
Returns the type URI that identifies the specific KeyInfoData
subclass.
|
void |
setObjectType(java.lang.String type)
Sets the Type attribute identifying the type of
the referenced object.
|
addTransform, dereference, dereference, getTransforms, getURI, setCIDResolver, setURIaddNSPrefixAttr, addNSPrefixAttr, addNSPrefixAttrDefault, addNSPrefixAttrDefault, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getChildElementsByTagName, getChildElementsByTagName, getChildElementsByTagNameNS, getChildElementsByTagNameNS, getDefaultNSPrefix, getElement, getElementsByTagName, getElementsByTagNameNS, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setDefaultNSPrefixappendChild, appendChild, appendTo, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNode, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getSystemId, hasAttributes, hasChildNodes, insertBefore, insertBefore, isSupported, normalize, removeChild, removeChild, replaceChild, replaceChild, setNodeValue, setPrefix, setSystemId, toBytesXML, toStringXMLpublic RetrievalMethod(org.w3c.dom.Element element)
throws org.w3c.dom.DOMException
RetrievalMethod instance
from the given Element node.element - An Element node in the XML document that conforms to
the XML-DSIG RetrievalMethod schema.org.w3c.dom.DOMExceptionpublic RetrievalMethod(org.w3c.dom.Element element,
java.lang.String systemId)
throws org.w3c.dom.DOMException
RetrievalMethod instance
from the given Element node.element - An Element node in the XML document that conforms to
the XML-DSIG RetrievalMethod schema.systemId - The URI string system ID for this element.org.w3c.dom.DOMExceptionXMLNode.setSystemId(java.lang.String)public void setObjectType(java.lang.String type)
throws org.w3c.dom.DOMException
type - A URI identifying the type of the referenced object.org.w3c.dom.DOMExceptionpublic java.lang.String getObjectType()
null if the attribute is missing.public KeyInfoData getKeyInfoData() throws ReferenceException
RetrievalMethod by retrieving the
referenced key info, applying any Transforms and instantiating an
appropriate KeyInfoData class.KeyInfoData instance.ReferenceException - If an error occurs in dereferencing, parsing or instantiating
the referenced KeyInfo data.public java.lang.String getType()
KeyInfoDataInterface XMLURI contains the KeyInfo data type URIs
defined in the XML Signature and XML Encryption namespaces, including:
XMLURI.obj_DHKeyValueXMLURI.obj_DSAKeyValueXMLURI.obj_EncryptedKeyXMLURI.obj_KeyNameXMLURI.obj_MgmtDataXMLURI.obj_PGPDataXMLURI.obj_rawX509CertificateXMLURI.obj_RetrievalMethodXMLURI.obj_RSAKeyValueXMLURI.obj_SPKIDataXMLURI.obj_X509DatagetType in interface KeyInfoData