|
Oracle Fusion Middleware XML Security Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10680-05 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.security.xmlsec.util.XMLNode
oracle.security.xmlsec.util.XMLElement
oracle.security.xmlsec.dsig.ObjectReference
public abstract class ObjectReference
Base class for elements that serve as references. I.e., elements consisting of a URI identifying the referenced object, along with any transformation and type information needed to process it.
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.
Nested Class Summary | |
---|---|
static interface |
ObjectReference.CIDResolver |
Field Summary |
---|
Fields inherited from class oracle.security.xmlsec.util.XMLNode |
---|
node, systemId |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class oracle.security.xmlsec.util.XMLNode |
---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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
Method Detail |
---|
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)
|
Oracle Fusion Middleware XML Security Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10680-05 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |