Skip navigation links

Oracle Security Developer Tools XML Security Java API Reference
11g (11.1.1)

E10680-02


oracle.security.xmlsec.enc
Class XECipherReference

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


public class XECipherReference
extends ObjectReference

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

See Also:
XECipherData

Nested Class Summary

 

Nested classes/interfaces inherited from class oracle.security.xmlsec.dsig.ObjectReference
ObjectReference.CIDResolver

 

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.io.InputStream getCipherValueAsStream()
           
 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, dereference, getURI, setCIDResolver, setURI

 

Methods inherited from class oracle.security.xmlsec.util.XMLElement
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

 

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.
Throws:
org.w3c.dom.DOMException

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.
Throws:
org.w3c.dom.DOMException
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

getCipherValueAsStream

public java.io.InputStream getCipherValueAsStream()
                                           throws ReferenceException
Throws:
ReferenceException

Skip navigation links

Oracle Security Developer Tools XML Security Java API Reference
11g (11.1.1)

E10680-02


Copyright © 2005, 2009, Oracle. All rights reserved.