-
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.kms.KmsMasterKey.getInstance(AWSCredentials, String) Use aKmsMasterKeyProvider
to obtainKmsMasterKey
s.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.
-
Constructors Constructor Description com.amazonaws.encryptionsdk.kms.KmsMasterKeyProvider() The default region set by this constructor is subject to change. Use the builder method to construct instances of this class for better control.