Skip navigation links

Oracle Fusion Middleware XML Security Java API Reference for Oracle Security Developer Tools
11g Release 1 (11.1.1)

E10680-05


oracle.security.xmlsec.enc
Class XECipherData

java.lang.Object
  extended by oracle.security.xmlsec.util.XMLNode
      extended by oracle.security.xmlsec.util.XMLElement
          extended by oracle.security.xmlsec.enc.XECipherData


public class XECipherData
extends XMLElement

The CipherData element that provides the encrypted data. It either stores the encrypted data in the CipherValue element or refers to a source containing it via CipherReference element.

See Also:
XEEncryptedObject, XECipherReference

Field Summary

 

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

 

Constructor Summary
XECipherData(org.w3c.dom.Element cipherData)
          Create a XECipherData instance with the given CipherData element.
XECipherData(org.w3c.dom.Element cipherData, java.lang.String systemId)
          Create a XECipherData instance with the given CipherData element.

 

Method Summary
 XECipherReference getCipherReference()
          Return the XECipherReference object in this XECipherData element.
 byte[] getCipherValue()
          Return the cipher value stored in the CipherValue element.
 java.io.InputStream getCipherValueAsStream()
          Return the Cipher value as InputStream, read from this stream causes base64 decoding
 void setCipherReference(XECipherReference cipherRef)
          Sets the CipherReference element.
 void setCipherValue(byte[] cipherValue)
          Sets the CipherValue element with the given cipher value.
 java.io.OutputStream setCipherValueAsStream()
          get an OutputStream, writing to the stream and closing it should cause the cipher value to be set.

 

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

XECipherData

public XECipherData(org.w3c.dom.Element cipherData)
             throws org.w3c.dom.DOMException
Create a XECipherData instance with the given CipherData element.
Parameters:
cipherData - A CipherData element.
Throws:
org.w3c.dom.DOMException

XECipherData

public XECipherData(org.w3c.dom.Element cipherData,
                    java.lang.String systemId)
             throws org.w3c.dom.DOMException
Create a XECipherData instance with the given CipherData element.
Parameters:
cipherData - A CipherData 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

setCipherValue

public void setCipherValue(byte[] cipherValue)
                    throws org.w3c.dom.DOMException
Sets the CipherValue element with the given cipher value.
Parameters:
cipherValue - The encrypted data.
Throws:
org.w3c.dom.DOMException

setCipherValueAsStream

public java.io.OutputStream setCipherValueAsStream()
get an OutputStream, writing to the stream and closing it should cause the cipher value to be set.
Returns:

setCipherReference

public void setCipherReference(XECipherReference cipherRef)
                        throws org.w3c.dom.DOMException
Sets the CipherReference element.
Parameters:
cipherRef - An XECipherReference object.
Throws:
org.w3c.dom.DOMException

getCipherValue

public byte[] getCipherValue()
Return the cipher value stored in the CipherValue element.
Returns:
The cipher value, or null if not set (i.e., a CipherReference is used instead).

getCipherValueAsStream

public java.io.InputStream getCipherValueAsStream()
Return the Cipher value as InputStream, read from this stream causes base64 decoding
Returns:

getCipherReference

public XECipherReference getCipherReference()
Return the XECipherReference object in this XECipherData element.
Returns:
The XECipherReference object, or null if not set (i.e., a CipherValue is used instead).

Skip navigation links

Oracle Fusion Middleware XML Security Java API Reference for Oracle Security Developer Tools
11g Release 1 (11.1.1)

E10680-05


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