static class SecureWALCellCodec.EncryptedKvEncoder extends KeyValueCodecWithTags.KeyValueEncoder
Modifier and Type | Field and Description |
---|---|
private Encryptor |
encryptor |
private ThreadLocal<byte[]> |
iv |
flushed, out
Constructor and Description |
---|
EncryptedKvEncoder(OutputStream os) |
EncryptedKvEncoder(OutputStream os,
Encryptor encryptor) |
Modifier and Type | Method and Description |
---|---|
protected void |
incrementIv(int v) |
protected byte[] |
nextIv() |
void |
write(Cell cell)
Implementation must copy the entire state of the Cell.
|
checkFlushed, flush, getOuputStream
private final ThreadLocal<byte[]> iv
public EncryptedKvEncoder(OutputStream os)
public EncryptedKvEncoder(OutputStream os, Encryptor encryptor)
protected byte[] nextIv()
protected void incrementIv(int v)
public void write(Cell cell) throws IOException
CellOutputStream
write
in interface CellOutputStream
write
in class KeyValueCodecWithTags.KeyValueEncoder
cell
- Cell to write outIOException
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.