public class CipherHeader extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
HEADER_IV_LEN |
| Constructor and Description |
|---|
CipherHeader() |
CipherHeader(int version,
List<EncryptedDataKey> encryptedDataKeys,
Map<String,String> encryptionContext,
CryptoAlgorithm algorithm) |
CipherHeader(int version,
List<EncryptedDataKey> encryptedDataKeys,
Map<String,String> encryptionContext,
CryptoAlgorithm algorithm,
byte[] headerIv,
byte[] headerAuthTag) |
CipherHeader(List<EncryptedDataKey> encryptedDataKeys,
Map<String,String> encryptionContext,
CryptoAlgorithm algorithm) |
CipherHeader(List<EncryptedDataKey> encryptedDataKeys,
Map<String,String> encryptionContext,
CryptoAlgorithm algorithm,
byte[] headerIv,
byte[] headerAuthTag) |
| Modifier and Type | Method and Description |
|---|---|
void |
calculateHeaderAuthTag(AlgorithmHandler handler) |
void |
deserialize(InputStream inputStream) |
CryptoAlgorithm |
getAlgorithm() |
List<EncryptedDataKey> |
getEncryptedDataKeys() |
Map<String,String> |
getEncryptionContext() |
byte[] |
getEncryptionContextBytes() |
byte[] |
getHeaderAuthTag() |
byte[] |
getHeaderIv() |
int |
getVersion() |
byte[] |
serialize() |
byte[] |
serializeAuthenticatedFields() |
void |
setAlgorithm(CryptoAlgorithm algorithm) |
void |
setHeaderIv(byte[] headerIv) |
void |
setVersion(int version) |
boolean |
verifyHeaderAuthTag(AlgorithmHandler handler) |
public CipherHeader(List<EncryptedDataKey> encryptedDataKeys, Map<String,String> encryptionContext, CryptoAlgorithm algorithm)
public CipherHeader(List<EncryptedDataKey> encryptedDataKeys, Map<String,String> encryptionContext, CryptoAlgorithm algorithm, byte[] headerIv, byte[] headerAuthTag)
public CipherHeader(int version,
List<EncryptedDataKey> encryptedDataKeys,
Map<String,String> encryptionContext,
CryptoAlgorithm algorithm)
public CipherHeader(int version,
List<EncryptedDataKey> encryptedDataKeys,
Map<String,String> encryptionContext,
CryptoAlgorithm algorithm,
byte[] headerIv,
byte[] headerAuthTag)
public CipherHeader()
public void setVersion(int version)
public int getVersion()
public void setHeaderIv(byte[] headerIv)
public void setAlgorithm(CryptoAlgorithm algorithm)
public List<EncryptedDataKey> getEncryptedDataKeys()
public byte[] getEncryptionContextBytes()
public CryptoAlgorithm getAlgorithm()
public byte[] getHeaderIv()
public byte[] getHeaderAuthTag()
public void calculateHeaderAuthTag(AlgorithmHandler handler)
public boolean verifyHeaderAuthTag(AlgorithmHandler handler)
public byte[] serializeAuthenticatedFields()
public byte[] serialize()
public void deserialize(InputStream inputStream) throws IOException
IOExceptionCopyright © 2020. All rights reserved.