Name

Class javax.crypto.CipherOutputStream

Synopsis

This class is a filter output stream that passes all its data through a cipher. You can construct a cipher output stream by specifying an underlying output stream and an initialized cipher. For best results, use a byte-oriented mode for the cipher.

Class Definition

public class javax.crypto.CipherOutputStream
	extends java.io.FilterOutputStream {

	// Constructors
	protected CipherOutputStream(OutputStream);
	public CipherOutputStream(OutputStream, Cipher);

	// Instance Methods
	public void close();
	public void flush();
	public void write(int);
	public void write(byte[]);
	public void write(byte[], int, int);
}

See also:

Cipher

Get Java Security now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.