public class EncryptedOutputStream extends OutputStream
SnapshotEncryptionOutputStream
, but OutputStream
. Encrypts everything that's written to
it, using EncryptionUtil.encrypt(ByteBuffer, ByteBuffer, GroupKey)
.
Unlike SnapshotEncryptionOutputStream
, it doesn't ignore last bytes of proposed pages. Every byte is
encrypted.
Constructor and Description |
---|
EncryptedOutputStream(OutputStream delegate,
org.apache.ignite.internal.managers.encryption.GroupKey encryptionKey,
EncryptionSpi encSpi,
int pageSize)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
write(byte[] bytes) |
void |
write(byte[] bytes,
int off,
int len) |
void |
write(int b) |
flush
public EncryptedOutputStream(OutputStream delegate, org.apache.ignite.internal.managers.encryption.GroupKey encryptionKey, EncryptionSpi encSpi, int pageSize)
delegate
- Delegate stream.encryptionKey
- Key for cache encryption.encSpi
- Encryption SPI instance.pageSize
- Page size.public void write(int b) throws IOException
write
in class OutputStream
IOException
public void write(byte[] bytes) throws IOException
write
in class OutputStream
IOException
public void write(byte[] bytes, int off, int len) throws IOException
write
in class OutputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class OutputStream
IOException
GridGain In-Memory Computing Platform : ver. 8.9.14 Release Date : November 5 2024