public final class EncryptionMaterials extends Object
Modifier and Type | Class and Description |
---|---|
static class |
EncryptionMaterials.Builder |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
CryptoAlgorithm |
getAlgorithm()
The algorithm to use for this encryption operation.
|
SecretKey |
getCleartextDataKey()
The cleartext data key to use for encrypting this message.
|
List<KeyBlob> |
getEncryptedDataKeys()
The KeyBlobs to serialize (in cleartext) into the encrypted message.
|
Map<String,String> |
getEncryptionContext()
The encryption context to use for the encryption operation.
|
List<MasterKey> |
getMasterKeys()
Contains a list of all MasterKeys that could decrypt this message.
|
PrivateKey |
getTrailingSignatureKey()
The private key to be used to sign the message trailer.
|
int |
hashCode() |
static EncryptionMaterials.Builder |
newBuilder() |
EncryptionMaterials.Builder |
toBuilder() |
public EncryptionMaterials.Builder toBuilder()
public static EncryptionMaterials.Builder newBuilder()
public CryptoAlgorithm getAlgorithm()
public Map<String,String> getEncryptionContext()
public List<KeyBlob> getEncryptedDataKeys()
public SecretKey getCleartextDataKey()
public PrivateKey getTrailingSignatureKey()
Note that it's the CryptoMaterialsManager
's
responsibility to find a place to put the public key; typically, this will be in the encryption
context, to improve cross-compatibility, but this is not a strict requirement.
public List<MasterKey> getMasterKeys()
Copyright © 2023. All rights reserved.