public abstract class ObjectReference extends XMLElement
The base XML schema for such elements is:
<complexType>
<sequence>
<element ref="Transforms" minOccurs="0"/>
</sequence>
<attribute name="URI" type="anyURI" use="optional"/>
</complexType>
The Transforms
element is defined in the application's namespace, and is a sequence of dsig:Transform
elements.Modifier and Type | Class and Description |
---|---|
static interface |
ObjectReference.CIDResolver |
Modifier | Constructor and Description |
---|---|
protected |
ObjectReference(org.w3c.dom.Document owner, java.lang.String tagName)
Creates a new
ObjectReference instance. |
protected |
ObjectReference(org.w3c.dom.Document owner, java.lang.String tagName, java.lang.String uri)
Creates a new
ObjectReference instance. |
protected |
ObjectReference(org.w3c.dom.Document owner, java.lang.String nsURI, java.lang.String tagName, java.lang.String uri)
Creates a new
ObjectReference instance. |
protected |
ObjectReference(org.w3c.dom.Element element)
Creates a new
ObjectReference instance from the given Element node. |
protected |
ObjectReference(org.w3c.dom.Element element, java.lang.String systemId)
Creates a new
ObjectReference instance from the given Element node. |
Modifier and Type | Method and Description |
---|---|
void |
addTransform(XSAlgorithmIdentifier trans)
Adds a Transform algorithm to the list of Transforms to be applied to the referenced object.
|
protected java.lang.Object |
dereference()
Internal use only.
|
static XMLContainer |
dereference(java.lang.String uri, org.w3c.dom.Document doc, org.w3c.dom.Element refElem, java.lang.String systemId)
Internal use only.
|
java.util.Vector |
getTransforms()
Returns a list of the XML transforms to be applied to the referenced data object.
|
java.lang.String |
getURI()
Returns the value of the URI attribute identifying the referenced object.
|
static void |
setCIDResolver(ObjectReference.CIDResolver cidResolver) |
void |
setURI(java.lang.String uri)
Sets the URI attribute identifying the referenced object.
|
addNSPrefixAttr, 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, setDefaultNSPrefix
appendChild, 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, toStringXML
protected ObjectReference(org.w3c.dom.Element element) throws org.w3c.dom.DOMException
ObjectReference
instance from the given Element node.element
- An Element node in the XML document.org.w3c.dom.DOMException
protected ObjectReference(org.w3c.dom.Element element, java.lang.String systemId) throws org.w3c.dom.DOMException
ObjectReference
instance from the given Element node.element
- An Element node in the XML document.systemId
- The URI string system ID for this element.org.w3c.dom.DOMException
XMLNode.setSystemId(java.lang.String)
protected ObjectReference(org.w3c.dom.Document owner, java.lang.String tagName) throws org.w3c.dom.DOMException
ObjectReference
instance.owner
- The owner document of the new ObjectReference
.tagName
- The name of the element to be created; for example, "Reference" if this ObjectReference
is to be a XML-DSIG Reference element. The element is created in the XML-DSIG namespace.org.w3c.dom.DOMException
protected ObjectReference(org.w3c.dom.Document owner, java.lang.String tagName, java.lang.String uri) throws org.w3c.dom.DOMException
ObjectReference
instance.owner
- The owner document of the new ObjectReference
.tagName
- The name of the element to be created; for example, "Reference" if this ObjectReference
is to be a XML-DSIG Reference element. The element is created in the XML-DSIG namespace.uri
- A URI identifying the object being referenced.org.w3c.dom.DOMException
protected ObjectReference(org.w3c.dom.Document owner, java.lang.String nsURI, java.lang.String tagName, java.lang.String uri) throws org.w3c.dom.DOMException
ObjectReference
instance.owner
- The owner document of the new ObjectReference
.nsURI
- The namespace URI in which the new element is to be created.tagName
- The name of the element to be created; for example, "Reference" if this ObjectReference
is to be a XML-DSIG Reference element.uri
- A URI identifying the object being referenced.org.w3c.dom.DOMException
public static XMLContainer dereference(java.lang.String uri, org.w3c.dom.Document doc, org.w3c.dom.Element refElem, java.lang.String systemId) throws ReferenceException
Retrieves the referenced data object, but do not run transforms
oracle.security.crypto.util.XMLContainer
.ReferenceException
- If an error occurs retrieving the referenced data objectprotected java.lang.Object dereference() throws ReferenceException
ObjectReference
only.
Retrieves the referenced data object, and applies any specified transforms.
oracle.security.crypto.util.XMLContainer
.ReferenceException
- If an error occurs retrieving the referenced data object or applying the transforms.public void setURI(java.lang.String uri) throws org.w3c.dom.DOMException
uri
- A URI identifying the referenced object.org.w3c.dom.DOMException
public java.lang.String getURI()
null
if the attribute is missing.public void addTransform(XSAlgorithmIdentifier trans) throws org.w3c.dom.DOMException
trans
- A XSAlgorithmIdentifier
instance.org.w3c.dom.DOMException
public java.util.Vector getTransforms()
Vector
of XSAlgorithmIdentifier
s.public static void setCIDResolver(ObjectReference.CIDResolver cidResolver)