- All Implemented Interfaces:
- java.io.Closeable, java.io.Flushable, java.lang.AutoCloseable
public class EncryptOutputStream
extends java.io.FilterOutputStream
This class is similar to the CipherOutputStream, except that it does two special things
to conform to XML encryption, a) it emits the IntializationVector at the beginning
of the stream and b) it emits a padding at the end of the stream .
Note: the cipher object must be set up for NoPadding, or for ISO10126Padding
If you are using a nonce, you must write the nonce into the EncryptOutputStream in the beginning, that way it will
get encrypted.
- Since:
- release specific (what release of product did this appear in)
- Version:
- $Header: entsec_ldap/java/src/oracle/security/xmlsec/enc/EncryptOutputStream.java /main/2 2012/07/27 20:34:21 pdatta Exp $