|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-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_abBlockClearThe current block of unencrypted data |
protected javax.crypto.Cipher |
m_cipherThe Encryption Cipher |
protected int |
m_nBlockIndexThe next available index to write into the unencrypted data block. |
| Fields inherited from class java.io.FilterOutputStream |
|---|
out |
| Constructor Summary | |
|---|---|
BlockCipherOutputStream(java.io.OutputStream stream, javax.crypto.Cipher cipher)Construct a BlockCipherOutputStream around the supplied stream and encrypt output data with the supplied cipher. |
|
BlockCipherOutputStream(java.io.OutputStream stream, javax.crypto.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 javax.crypto.Cipher m_cipher
protected byte[] m_abBlockClear
protected int m_nBlockIndex
| Constructor Detail |
|---|
public BlockCipherOutputStream(java.io.OutputStream stream,
javax.crypto.Cipher cipher)
stream - the stream to write encrypted data tocipher - the cipher to use to encrypt data
public BlockCipherOutputStream(java.io.OutputStream stream,
javax.crypto.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 cipher| Method Detail |
|---|
public void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class java.io.FilterOutputStreamjava.io.IOException
public void write(int bData)
throws java.io.IOException
write in class java.io.FilterOutputStreamjava.io.IOException
public void write(byte[] abData,
int nOffset,
int nLength)
throws java.io.IOException
write in class java.io.FilterOutputStreamjava.io.IOException
protected void writeBlock()
throws java.io.IOException
java.io.IOException
|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||