Package | Description |
---|---|
com.amazonaws.encryptionsdk |
Contains
AwsCrypto , the primary entry-point to the Aws
Encryption SDK. |
Modifier and Type | Method and Description |
---|---|
CryptoResult<byte[],?> |
AwsCrypto.decryptData(CryptoMaterialsManager materialsManager,
byte[] ciphertext)
Decrypts the provided ciphertext by delegating to the provided materialsManager to obtain the
decrypted
DataKey . |
CryptoResult<byte[],?> |
AwsCrypto.decryptData(CryptoMaterialsManager materialsManager,
ParsedCiphertext ciphertext) |
<K extends MasterKey<K>> |
AwsCrypto.decryptData(MasterKeyProvider<K> provider,
byte[] ciphertext)
Decrypts the provided
ciphertext by requesting that the provider unwrap any
usable DataKey in the ciphertext and then decrypts the ciphertext using that DataKey . |
<K extends MasterKey<K>> |
AwsCrypto.decryptData(MasterKeyProvider<K> provider,
ParsedCiphertext ciphertext) |
CryptoResult<String,?> |
AwsCrypto.decryptString(CryptoMaterialsManager provider,
String ciphertext)
Deprecated.
Use the
AwsCrypto.decryptData(CryptoMaterialsManager, byte[]) and AwsCrypto.encryptData(CryptoMaterialsManager, byte[], Map) APIs instead. encryptString and
decryptString 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 of encryptString and base64-encode the input to decryptString . These
deprecated APIs will be removed in the future. |
<K extends MasterKey<K>> |
AwsCrypto.decryptString(MasterKeyProvider<K> provider,
String ciphertext)
Deprecated.
Use the
AwsCrypto.decryptData(MasterKeyProvider, byte[]) and AwsCrypto.encryptData(MasterKeyProvider, byte[], Map) APIs instead. encryptString and
decryptString 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 of encryptString and base64-encode the input to decryptString . These
deprecated APIs will be removed in the future. |
CryptoResult<byte[],?> |
AwsCrypto.encryptData(CryptoMaterialsManager materialsManager,
byte[] plaintext)
Returns the equivalent to calling
AwsCrypto.encryptData(CryptoMaterialsManager, byte[], Map)
with an empty encryptionContext . |
CryptoResult<byte[],?> |
AwsCrypto.encryptData(CryptoMaterialsManager materialsManager,
byte[] plaintext,
Map<String,String> encryptionContext)
Returns an encrypted form of
plaintext that has been protected with DataKeys that are in turn protected by the given CryptoMaterialsProvider. |
<K extends MasterKey<K>> |
AwsCrypto.encryptData(MasterKeyProvider<K> provider,
byte[] plaintext)
Returns the equivalent to calling
AwsCrypto.encryptData(MasterKeyProvider, byte[], Map) with an
empty encryptionContext . |
<K extends MasterKey<K>> |
AwsCrypto.encryptData(MasterKeyProvider<K> provider,
byte[] plaintext,
Map<String,String> encryptionContext)
Returns an encrypted form of
plaintext that has been protected with DataKeys that are in turn protected by MasterKeys provided by provider . |
CryptoResult<String,?> |
AwsCrypto.encryptString(CryptoMaterialsManager materialsManager,
String plaintext)
Deprecated.
Use the
AwsCrypto.encryptData(CryptoMaterialsManager, byte[]) and AwsCrypto.decryptData(CryptoMaterialsManager, byte[]) APIs instead. encryptString and
decryptString 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 of encryptString and base64-encode the input to decryptString . These
deprecated APIs will be removed in the future. |
CryptoResult<String,?> |
AwsCrypto.encryptString(CryptoMaterialsManager materialsManager,
String plaintext,
Map<String,String> encryptionContext)
Deprecated.
Use the
AwsCrypto.encryptData(CryptoMaterialsManager, byte[], Map) and AwsCrypto.decryptData(CryptoMaterialsManager, byte[]) APIs instead. encryptString and
decryptString 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 of encryptString and base64-encode the input to decryptString . These
deprecated APIs will be removed in the future. |
<K extends MasterKey<K>> |
AwsCrypto.encryptString(MasterKeyProvider<K> provider,
String plaintext)
Deprecated.
Use the
AwsCrypto.encryptData(MasterKeyProvider, byte[]) and AwsCrypto.decryptData(MasterKeyProvider, byte[]) APIs instead. encryptString and decryptString 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 of
encryptString and base64-encode the input to decryptString . These
deprecated APIs will be removed in the future. |
<K extends MasterKey<K>> |
AwsCrypto.encryptString(MasterKeyProvider<K> provider,
String plaintext,
Map<String,String> encryptionContext)
Deprecated.
Use the
AwsCrypto.encryptData(MasterKeyProvider, byte[], Map) and AwsCrypto.decryptData(MasterKeyProvider, byte[]) APIs instead. encryptString and decryptString 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 of
encryptString and base64-encode the input to decryptString . These
deprecated APIs will be removed in the future. |
CryptoResult<CryptoInputStream<K>,K> |
CryptoInputStream.getCryptoResult()
Returns the result of the cryptographic operations including associate metadata.
|
CryptoResult<CryptoOutputStream<K>,K> |
CryptoOutputStream.getCryptoResult()
Returns the result of the cryptographic operations including associate metadata.
|
Copyright © 2023. All rights reserved.