public class XECipherData extends XMLElement
XEEncryptedObject, XECipherReference| Constructor and Description | 
|---|
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. | 
| Modifier and Type | Method and Description | 
|---|---|
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. 
 | 
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, setDefaultNSPrefixappendChild, 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
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.DOMExceptionXMLNode.setSystemId(java.lang.String)
public void setCipherValue(byte[] cipherValue)
                    throws org.w3c.dom.DOMException
cipherValue - The encrypted data.org.w3c.dom.DOMExceptionpublic java.io.OutputStream setCipherValueAsStream()
public void setCipherReference(XECipherReference cipherRef) throws org.w3c.dom.DOMException
cipherRef - An XECipherReference object.org.w3c.dom.DOMExceptionpublic 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).