com.ibm.xml.enc.dom
Class DOMCipherValue
java.lang.Object
com.ibm.xml.enc.dom.DOMStructure
com.ibm.xml.enc.dom.DOMCipherData
com.ibm.xml.enc.dom.DOMCipherValue
- All Implemented Interfaces:
- CipherData, CipherValue, XMLStructure
public class DOMCipherValue
- extends DOMCipherData
- implements CipherValue
DOM-based implementation of CipherValue
Method Summary |
boolean |
equals(java.lang.Object o)
|
byte[] |
getValue()
Returns the encrypted data. |
void |
marshal(org.w3c.dom.Node parent,
java.lang.String encPrefix,
DOMCryptoContext context)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DOMCipherValue
DOMCipherValue(byte[] data)
DOMCipherValue
DOMCipherValue(org.w3c.dom.Element parent,
org.w3c.dom.Element elem,
XMLCryptoContext context)
throws MarshalException
- Constructor
- Parameters:
elem
- the CipherData elementcontext
- the crypto context that this element may be inserted into
- Throws:
MarshalException
marshal
public void marshal(org.w3c.dom.Node parent,
java.lang.String encPrefix,
DOMCryptoContext context)
throws MarshalException
- Specified by:
marshal
in class DOMStructure
- Throws:
MarshalException
getValue
public byte[] getValue()
- Description copied from interface:
CipherValue
- Returns the encrypted data. Each invocation of this method returns a
clone of the data, to protect against subsequent modification.
- Specified by:
getValue
in interface CipherValue
- Returns:
- the encrypted data
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
Portions Copyright 2003, 2012 IBM Corporation.
Portions Copyright 2003, 2012 Oracle and/or its affiliates.