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) |
flushpublic 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 OutputStreamIOExceptionpublic void write(byte[] bytes)
throws IOException
write in class OutputStreamIOExceptionpublic void write(byte[] bytes,
int off,
int len)
throws IOException
write in class OutputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class OutputStreamIOException
GridGain In-Memory Computing Platform : ver. 8.9.26 Release Date : October 16 2025