public abstract class EncryptionHandler
extends java.lang.Object
EncryptionHandler class is an abstract superclass of the
Encryptor and Decryptor classes.
The EncryptionHandler class implements the capabilities that
the Encryptor and Decryptor classes have in common the
capability to parse XML into a DOM tree, and to serialize a DOM tree to an output stream or
to an input stream.
| Modifier and Type | Field and Description |
|---|---|
protected org.w3c.dom.Document |
m_DOMdocument
Holds the DOM Document.
|
protected XMLEInit |
m_XMLEInit
Holds the XMLEInit initializer instance
|
| Modifier and Type | Method and Description |
|---|---|
org.w3c.dom.Document |
getDocument()
Retrieves the DOM document tree.
|
boolean |
isValidated()
Indicates whether this Document was parsed with validation by the
EncryptionHandler. |
java.io.InputStream |
toInputStream()
Serializes the DOM Document to an
InputStream. |
void |
toOutputStream(java.io.OutputStream outputStream)
Serializes the DOM Document to an
OutputStream. |
protected XMLEInit m_XMLEInit
protected org.w3c.dom.Document m_DOMdocument
public boolean isValidated()
EncryptionHandler.
public org.w3c.dom.Document getDocument()
public java.io.InputStream toInputStream()
throws EncryptionHandlerException
InputStream.
This method is invoked by an application after it has finished encrypting or decrypting an XML document.
EncryptionHandlerException - if the internal DOM tree cannot be serializedtoOutputStream(java.io.OutputStream)public void toOutputStream(java.io.OutputStream outputStream)
throws EncryptionHandlerException
OutputStream.
This method is invoked by an application after it has finished encrypting or decrypting an XML document.
outputStream - is a stream to which to write the encrypted or decrypted XML documentEncryptionHandlerException - if the internal DOM tree cannot be serializedtoInputStream()