|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
java.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. |
|
BlockCipherOutputStream(OutputStream stream, Cipher cipher, int cbBlock) 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 datapublic BlockCipherOutputStream(OutputStream stream, Cipher cipher, int cbBlock)
stream
- the stream to write encrypted data tocipher
- the cipher to use to encrypt datacbBlock
- the size of an unencrypted block required by the cipherMethod 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
|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |