Oracle Security Developer Tools XML Security Java API Reference
10g Release 2 (10.1.2.0.2)

B15571-01


oracle.security.xmlsec.enc
Class XECipherReference

java.lang.Object
  extended byoracle.security.xmlsec.util.XMLNode
      extended byoracle.security.xmlsec.util.XMLElement
          extended byoracle.security.xmlsec.dsig.ObjectReference
              extended byoracle.security.xmlsec.enc.XECipherReference


public class XECipherReference
extends ObjectReference

The CipherReference element that identifies a source containing the encrypted data.

See Also:
XECipherData

Field Summary

Fields inherited from class oracle.security.xmlsec.util.XMLNode
node, systemId

Constructor Summary
XECipherReference(org.w3c.dom.Element cipherRef)
Create a XECipherReference instance from the given CipherReference element.
XECipherReference(org.w3c.dom.Element cipherRef, java.lang.String systemId)
Create a XECipherReference instance from the given CipherReference element.

Method Summary
void addTransform(XSAlgorithmIdentifier trans)
Adds a Transform algorithm to the list of Transforms to be applied to the referenced cipher value.
byte[] getCipherValue()
Dereferences this CipherReference and returns the octets of the cipher value being referenced.
java.util.Vector getTransforms()
Returns a list of the XML transforms to be applied to the referenced cipher value.

Methods inherited from class oracle.security.xmlsec.dsig.ObjectReference
dereference, getURI, setURI

Methods inherited from class oracle.security.xmlsec.util.XMLElement
addNSPrefixAttr, addNSPrefixAttr, addNSPrefixAttrDefault, addNSPrefixAttrDefault, getAttribute, getAttributeNode, getAttributeNodeNS, getAttributeNS, getChildElementsByTagName, getChildElementsByTagName, getChildElementsByTagNameNS, getChildElementsByTagNameNS, getDefaultNSPrefix, getElementsByTagName, getElementsByTagNameNS, getTagName, hasAttribute, hasAttributeNS, removeAttribute, removeAttributeNode, removeAttributeNS, setAttribute, setAttributeNode, setAttributeNodeNS, setAttributeNS, setDefaultNSPrefix

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

XECipherReference

public XECipherReference(org.w3c.dom.Element cipherRef)
                  throws org.w3c.dom.DOMException
Create a XECipherReference instance from the given CipherReference element.
Parameters:
cipherRef - A CipherReference element.

XECipherReference

public XECipherReference(org.w3c.dom.Element cipherRef,
                         java.lang.String systemId)
                  throws org.w3c.dom.DOMException
Create a XECipherReference instance from the given CipherReference element.
Parameters:
cipherRef - A CipherReference element.
systemId - The URI string system ID for this element.
Since:
2.0
See Also:
XMLNode.setSystemId(java.lang.String)

Method Detail

addTransform

public void addTransform(XSAlgorithmIdentifier trans)
                  throws org.w3c.dom.DOMException
Adds a Transform algorithm to the list of Transforms to be applied to the referenced cipher value.

When the first Transform is added, a Transforms element is created as a child to this XECipherReference to contain the sequence of Transform elements. This Transforms element is in the XML-ENC namespace, while each Transform element always has the XML-DSIG namespace.

Overrides:
addTransform in class ObjectReference
Parameters:
trans - An XSAlgorithmIdentifier instance.
Throws:
org.w3c.dom.DOMException

getTransforms

public java.util.Vector getTransforms()
Returns a list of the XML transforms to be applied to the referenced cipher value.
Overrides:
getTransforms in class ObjectReference
Returns:
A Vector of XSAlgorithmIdentifiers.

getCipherValue

public byte[] getCipherValue()
                      throws ReferenceException
Dereferences this CipherReference and returns the octets of the cipher value being referenced.
Returns:
The cipher value bytes, or null if none resulted from the dereferencing operation.
Throws:
ReferenceException

Oracle Security Developer Tools XML Security Java API Reference
10g Release 2 (10.1.2.0.2)

B15571-01


Copyright © 2005 , Oracle. All rights reserved.