public class CipherHeader extends Object
| Constructor and Description |
|---|
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) |
CryptoAlgorithm |
getAlgorithm() |
List<EncryptedDataKey> |
getEncryptedDataKeys() |
Map<String,String> |
getEncryptionContext() |
byte[] |
getEncryptionContextBytes() |
byte[] |
getHeaderAuthTag() |
byte[] |
getHeaderIv() |
byte[] |
serializeAuthenticatedFields() |
void |
setAlgorithm(CryptoAlgorithm algorithm) |
void |
setHeaderIv(byte[] headerIv) |
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 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 byte[] serializeAuthenticatedFields()
Copyright © 2020. All rights reserved.