-
Fields Field Description com.amazonaws.encryptionsdk.internal.Constants.MESSAGE_ID_LEN This value may change based onCryptoAlgorithm.getMessageIdLength()
-
Methods Method Description com.amazonaws.encryptionsdk.AwsCrypto.decryptString(MasterKeyProvider<K>, String) Use theAwsCrypto.decryptData(MasterKeyProvider, byte[])
andAwsCrypto.encryptData(MasterKeyProvider, byte[], Map)
APIs instead.encryptString
anddecryptString
work as expected if you use them together. However, to work with other language implementations of the AWS Encryption SDK, you need to base64-decode the output ofencryptString
and base64-encode the input todecryptString
. These deprecated APIs will be removed in the future.com.amazonaws.encryptionsdk.AwsCrypto.encryptString(MasterKeyProvider<K>, String, Map<String, String>) Use theAwsCrypto.encryptData(MasterKeyProvider, byte[], Map)
andAwsCrypto.decryptData(MasterKeyProvider, byte[])
APIs instead.encryptString
anddecryptString
work as expected if you use them together. However, to work with other language implementations of the AWS Encryption SDK, you need to base64-decode the output ofencryptString
and base64-encode the input todecryptString
. These deprecated APIs will be removed in the future.com.amazonaws.encryptionsdk.CryptoAlgorithm.deserialize(byte, short) com.amazonaws.encryptionsdk.internal.DecryptionHandler.create(MasterKeyProvider<K>, CiphertextHeaders, CommitmentPolicy, SignaturePolicy, int) This version may have to recalculate the number of bytes already parsed, which adds a performance penalty. UseDecryptionHandler.create(CryptoMaterialsManager, ParsedCiphertext, CommitmentPolicy, SignaturePolicy, int)
instead, which makes the parsed byte count directly available instead.com.amazonaws.encryptionsdk.kms.KmsMasterKeyProvider.addGrantToken(String) This method is inherently not thread safe. UseKmsMasterKeyProvider.withGrantTokens(List)
orKmsMasterKey.setGrantTokens(List)
instead.KmsMasterKeyProvider
s constructed using the builder will throw an exception on attempts to modify the list of grant tokens.com.amazonaws.encryptionsdk.kms.KmsMasterKeyProvider.setGrantTokens(List<String>) This method is inherently not thread safe. UseKmsMasterKey.setGrantTokens(List)
instead.KmsMasterKeyProvider
s constructed using the builder will throw an exception on attempts to modify the list of grant tokens.com.amazonaws.encryptionsdk.kmssdkv2.KmsMasterKeyProvider.addGrantToken(String) This method is inherently not thread safe. UseKmsMasterKeyProvider.withGrantTokens(List)
orKmsMasterKey.setGrantTokens(List)
instead.KmsMasterKeyProvider
s constructed using the builder will throw an exception on attempts to modify the list of grant tokens.com.amazonaws.encryptionsdk.kmssdkv2.KmsMasterKeyProvider.setGrantTokens(List<String>) This method is inherently not thread safe. UseKmsMasterKey.setGrantTokens(List)
instead.KmsMasterKeyProvider
s constructed using the builder will throw an exception on attempts to modify the list of grant tokens.
-
Constructors Constructor Description com.amazonaws.encryptionsdk.model.CiphertextHeaders(byte, CiphertextType, CryptoAlgorithm, byte[], List<KeyBlob>, ContentType, int)