|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.OutputStream
java.io.FilterOutputStream
com.tangosol.net.security.BlockCipherOutputStream
public class BlockCipherOutputStream
InputStream which supports block ciphers, and data sizes which exceed the Cipher's block size.
Field Summary | |
---|---|
protected byte[] |
m_abBlockClear
The current block of unencrypted data |
protected Cipher |
m_cipher
The Encryption Cipher |
protected int |
m_nBlockIndex
The next available index to write into the unencrypted data block. |
Fields inherited from class java.io.FilterOutputStream |
---|
out |
Constructor Summary | |
---|---|
BlockCipherOutputStream(OutputStream stream,
Cipher cipher)
Construct a BlockCipherOutputStream around the supplied stream and encrypt output data with the supplied cipher. |
Method Summary | |
---|---|
void |
flush()
|
void |
write(byte[] abData,
int nOffset,
int nLength)
|
void |
write(int bData)
|
protected void |
writeBlock()
Write the current clear block to the wrapped stream. |
Methods inherited from class java.io.FilterOutputStream |
---|
close, write |
Field Detail |
---|
protected Cipher m_cipher
protected byte[] m_abBlockClear
protected int m_nBlockIndex
Constructor Detail |
---|
public BlockCipherOutputStream(OutputStream stream, Cipher cipher)
stream
- the stream to write encrypted data tocipher
- the cipher to use to encrypt dataMethod Detail |
---|
public void flush() throws IOException
flush
in interface Flushable
flush
in class FilterOutputStream
IOException
public void write(int bData) throws IOException
write
in class FilterOutputStream
IOException
public void write(byte[] abData, int nOffset, int nLength) throws IOException
write
in class FilterOutputStream
IOException
protected void writeBlock() throws IOException
IOException
|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |