XML Security, 1.6

com.ibm.xml.enc.dom
Class DOMCipherValue

java.lang.Object
  extended by com.ibm.xml.enc.dom.DOMStructure
      extended by com.ibm.xml.enc.dom.DOMCipherData
          extended by com.ibm.xml.enc.dom.DOMCipherValue
All Implemented Interfaces:
CipherData, CipherValue, XMLStructure

public class DOMCipherValue
extends DOMCipherData
implements CipherValue

DOM-based implementation of CipherValue


Constructor Summary
DOMCipherValue(byte[] data)
           
DOMCipherValue(org.w3c.dom.Element parent, org.w3c.dom.Element elem, XMLCryptoContext context)
          Constructor
 
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 com.ibm.xml.enc.dom.DOMCipherData
getInstance
 
Methods inherited from class com.ibm.xml.enc.dom.DOMStructure
isFeatureSupported
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.xml.crypto.XMLStructure
isFeatureSupported
 

Constructor Detail

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 element
context - the crypto context that this element may be inserted into
Throws:
MarshalException
Method Detail

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

XML Security, 1.6

Portions Copyright 2003, 2012 IBM Corporation.
Portions Copyright 2003, 2012 Oracle and/or its affiliates.