T - the type of the underlying resultK - the type of the MasterKeys used in production of this resultpublic class CryptoResult<T,K extends MasterKey<K>> extends Object
AwsCrypto. It not only captures the result of the operation but also additional metadata such as the encryptionContext,
algorithm, MasterKey(s), and any other information captured in the CiphertextHeaders.| Modifier and Type | Method and Description |
|---|---|
CryptoAlgorithm |
getCryptoAlgorithm()
Convenience method equivalent to
getHeaders().getCryptoAlgoId(). |
Map<String,String> |
getEncryptionContext() |
CiphertextHeaders |
getHeaders() |
List<String> |
getMasterKeyIds()
Convenience method for retrieving the keyIds in the results from
getMasterKeys(). |
List<K> |
getMasterKeys()
Returns all relevant
MasterKeys. |
T |
getResult()
The actual result of the cryptographic operation.
|
public T getResult()
public List<K> getMasterKeys()
MasterKeys. In the case of encryption, returns all MasterKeys used to protect the ciphertext. In the case of decryption, returns just the MasterKey used to decrypt the ciphertext.public List<String> getMasterKeyIds()
getMasterKeys().public CryptoAlgorithm getCryptoAlgorithm()
getHeaders().getCryptoAlgoId().public CiphertextHeaders getHeaders()
Copyright © 2023. All rights reserved.