Uses of Class
com.amazonaws.encryptionsdk.exception.AwsCryptoException
-
Packages that use AwsCryptoException Package Description com.amazonaws.encryptionsdk ContainsAwsCrypto
, the primary entry-point to the Aws Encryption SDK.com.amazonaws.encryptionsdk.exception Contains the various exceptions which may be thrown by the AWS Encryption SDK.com.amazonaws.encryptionsdk.internal Contains the internal classes that handle the cryptographic defined by the message formats and algorithms.com.amazonaws.encryptionsdk.jce com.amazonaws.encryptionsdk.kms Contains logic necessary to createMasterKey
s backed by AWS KMS keys. -
-
Uses of AwsCryptoException in com.amazonaws.encryptionsdk
Methods in com.amazonaws.encryptionsdk that return AwsCryptoException Modifier and Type Method Description protected AwsCryptoException
MasterKeyProvider. buildCannotDecryptDksException()
protected AwsCryptoException
MasterKeyProvider. buildCannotDecryptDksException(Throwable t)
protected AwsCryptoException
MasterKeyProvider. buildCannotDecryptDksException(List<? extends Throwable> t)
Methods in com.amazonaws.encryptionsdk that throw AwsCryptoException Modifier and Type Method Description abstract DataKey<K>
MasterKeyProvider. decryptDataKey(CryptoAlgorithm algorithm, Collection<? extends EncryptedDataKey> encryptedDataKeys, Map<String,String> encryptionContext)
Iterates throughencryptedDataKeys
and returns the first one which can be successfully decrypted. -
Uses of AwsCryptoException in com.amazonaws.encryptionsdk.exception
Subclasses of AwsCryptoException in com.amazonaws.encryptionsdk.exception Modifier and Type Class Description class
BadCiphertextException
This exception is thrown when the values found in a ciphertext message are invalid or corrupt.class
CannotUnwrapDataKeyException
This exception is thrown when there are noDataKey
s which can be decrypted.class
NoSuchMasterKeyException
This exception is thrown when the SDK attempts to use aMasterKey
which either doesn't exist or to which it doesn't have access.class
ParseException
This exception is thrown when there are not enough bytes to parse a primitive, a specified number of bytes, or the bytes does not properly represent the desired object.class
UnsupportedProviderException
This exception is thrown when there are noMasterKeyProvider
s which which support the requestedprovider
value. -
Uses of AwsCryptoException in com.amazonaws.encryptionsdk.internal
Methods in com.amazonaws.encryptionsdk.internal that throw AwsCryptoException Modifier and Type Method Description static DecryptionHandler<?>
DecryptionHandler. create(CryptoMaterialsManager materialsManager, CommitmentPolicy commitmentPolicy)
Create a decryption handler using the provided materials manager.static DecryptionHandler<?>
DecryptionHandler. create(CryptoMaterialsManager materialsManager, CiphertextHeaders headers, CommitmentPolicy commitmentPolicy)
Create a decryption handler using the provided materials manager and already parsedheaders
.static <K extends MasterKey<K>>
DecryptionHandler<K>DecryptionHandler. create(MasterKeyProvider<K> customerMasterKeyProvider, CommitmentPolicy commitmentPolicy)
Create a decryption handler using the provided master key.static <K extends MasterKey<K>>
DecryptionHandler<K>DecryptionHandler. create(MasterKeyProvider<K> customerMasterKeyProvider, CiphertextHeaders headers, CommitmentPolicy commitmentPolicy)
Create a decryption handler using the provided master key and already parsedheaders
.ProcessingSummary
DecryptionHandler. processBytes(byte[] in, int off, int len, byte[] out, int outOff)
Decrypt the ciphertext bytes provided inin
and copy the plaintext bytes toout
.ProcessingSummary
EncryptionHandler. processBytes(byte[] in, int off, int len, byte[] out, int outOff)
Encrypt a block of bytes fromin
putting the plaintext result intoout
.Constructors in com.amazonaws.encryptionsdk.internal that throw AwsCryptoException Constructor Description EncryptionHandler(int frameSize, EncryptionMaterials result, CommitmentPolicy commitmentPolicy)
Create an encryption handler using the provided master key and encryption context. -
Uses of AwsCryptoException in com.amazonaws.encryptionsdk.jce
Methods in com.amazonaws.encryptionsdk.jce that throw AwsCryptoException Modifier and Type Method Description DataKey<JceMasterKey>
JceMasterKey. decryptDataKey(CryptoAlgorithm algorithm, Collection<? extends EncryptedDataKey> encryptedDataKeys, Map<String,String> encryptionContext)
DataKey<JceMasterKey>
KeyStoreProvider. decryptDataKey(CryptoAlgorithm algorithm, Collection<? extends EncryptedDataKey> encryptedDataKeys, Map<String,String> encryptionContext)
Attempts to decrypts theencryptedDataKeys
by first iterating through allaliasNames
specified in the constructor and then over all other compatible keys in theKeyStore
. -
Uses of AwsCryptoException in com.amazonaws.encryptionsdk.kms
Methods in com.amazonaws.encryptionsdk.kms that throw AwsCryptoException Modifier and Type Method Description DataKey<KmsMasterKey>
KmsMasterKey. decryptDataKey(CryptoAlgorithm algorithm, Collection<? extends EncryptedDataKey> encryptedDataKeys, Map<String,String> encryptionContext)
DataKey<KmsMasterKey>
KmsMasterKeyProvider. decryptDataKey(CryptoAlgorithm algorithm, Collection<? extends EncryptedDataKey> encryptedDataKeys, Map<String,String> encryptionContext)
-