|
Oracle Fusion Middleware XML Security Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10680-04 |
||||||||
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.enc.XECipherData
public class XECipherData
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.
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.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 |
---|
public XECipherData(org.w3c.dom.Element cipherData) throws org.w3c.dom.DOMException
XECipherData
instance with the given CipherData element.
cipherData
- A CipherData element.org.w3c.dom.DOMException
public XECipherData(org.w3c.dom.Element cipherData, java.lang.String systemId) throws org.w3c.dom.DOMException
XECipherData
instance with the given CipherData element.
cipherData
- A CipherData element.systemId
- The URI string system ID for this element.org.w3c.dom.DOMException
XMLNode.setSystemId(java.lang.String)
Method Detail |
---|
public void setCipherValue(byte[] cipherValue) throws org.w3c.dom.DOMException
cipherValue
- The encrypted data.org.w3c.dom.DOMException
public java.io.OutputStream setCipherValueAsStream()
public void setCipherReference(XECipherReference cipherRef) throws org.w3c.dom.DOMException
cipherRef
- An XECipherReference
object.org.w3c.dom.DOMException
public byte[] getCipherValue()
null
if not set (i.e., a CipherReference is used instead).public java.io.InputStream getCipherValueAsStream()
public XECipherReference getCipherReference()
XECipherReference
object in this XECipherData
element.XECipherReference
object, or null
if not set (i.e., a CipherValue is used instead).
|
Oracle Fusion Middleware XML Security Java API Reference for Oracle Security Developer Tools 11g Release 1 (11.1.1) E10680-04 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |