Uses of Class
com.amazonaws.encryptionsdk.exception.AwsCryptoException
Packages that use AwsCryptoException
Package
Description
Contains
AwsCrypto
, the primary entry-point to the Aws
Encryption SDK.Contains the various exceptions which may be thrown by the AWS Encryption SDK.
Contains the internal classes that handle the cryptographic defined by the message formats and
algorithms.
Contains logic necessary to create
MasterKey
s backed by AWS
KMS keys.-
Uses of AwsCryptoException in com.amazonaws.encryptionsdk
Methods in com.amazonaws.encryptionsdk that return AwsCryptoExceptionModifier and TypeMethodDescriptionprotected AwsCryptoException
MasterKeyProvider.buildCannotDecryptDksException()
protected AwsCryptoException
MasterKeyProvider.buildCannotDecryptDksException(Throwable t)
protected AwsCryptoException
MasterKeyProvider.buildCannotDecryptDksException(List<? extends Throwable> t)
Methods in com.amazonaws.encryptionsdk that throw AwsCryptoExceptionModifier and TypeMethodDescriptionMasterKeyProvider.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.exceptionModifier and TypeClassDescriptionclass
This exception is thrown when the values found in a ciphertext message are invalid or corrupt.class
This exception is thrown when there are noDataKey
s which can be decrypted.class
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
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
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 AwsCryptoExceptionModifier and TypeMethodDescriptionstatic DecryptionHandler<?>
DecryptionHandler.create(CryptoMaterialsManager materialsManager, CommitmentPolicy commitmentPolicy, SignaturePolicy signaturePolicy, int maxEncryptedDataKeys)
Create a decryption handler using the provided materials manager.static DecryptionHandler<?>
DecryptionHandler.create(CryptoMaterialsManager materialsManager, CiphertextHeaders headers, CommitmentPolicy commitmentPolicy, SignaturePolicy signaturePolicy, int maxEncryptedDataKeys)
Deprecated.This version may have to recalculate the number of bytes already parsed, which adds a performance penalty.static DecryptionHandler<?>
DecryptionHandler.create(CryptoMaterialsManager materialsManager, ParsedCiphertext headers, CommitmentPolicy commitmentPolicy, SignaturePolicy signaturePolicy, int maxEncryptedDataKeys)
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, SignaturePolicy signaturePolicy, int maxEncryptedDataKeys)
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, SignaturePolicy signaturePolicy, int maxEncryptedDataKeys)
Deprecated.This version may have to recalculate the number of bytes already parsed, which adds a performance penalty.static <K extends MasterKey<K>>
DecryptionHandler<K>DecryptionHandler.create(MasterKeyProvider<K> customerMasterKeyProvider, ParsedCiphertext headers, CommitmentPolicy commitmentPolicy, SignaturePolicy signaturePolicy, int maxEncryptedDataKeys)
Create a decryption handler using the provided master key and already parsedheaders
.DecryptionHandler.processBytes(byte[] in, int off, int len, byte[] out, int outOff)
Decrypt the ciphertext bytes provided inin
and copy the plaintext bytes toout
.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 AwsCryptoExceptionModifierConstructorDescriptionEncryptionHandler(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 AwsCryptoExceptionModifier and TypeMethodDescriptionJceMasterKey.decryptDataKey(CryptoAlgorithm algorithm, Collection<? extends EncryptedDataKey> encryptedDataKeys, Map<String,String> encryptionContext)
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 AwsCryptoExceptionModifier and TypeMethodDescriptionAwsKmsMrkAwareMasterKey.decryptDataKey(CryptoAlgorithm algorithm, Collection<? extends EncryptedDataKey> encryptedDataKeys, Map<String,String> encryptionContext)
Will attempt to decrypt if awsKmsArnMatchForDecrypt returns true inAwsKmsMrkAwareMasterKey#filterEncryptedDataKeys(String, AwsKmsCmkArnInfo, EncryptedDataKey)
.AwsKmsMrkAwareMasterKeyProvider.decryptDataKey(CryptoAlgorithm algorithm, Collection<? extends EncryptedDataKey> encryptedDataKeys, Map<String,String> encryptionContext)
KmsMasterKey.decryptDataKey(CryptoAlgorithm algorithm, Collection<? extends EncryptedDataKey> encryptedDataKeys, Map<String,String> encryptionContext)
KmsMasterKeyProvider.decryptDataKey(CryptoAlgorithm algorithm, Collection<? extends EncryptedDataKey> encryptedDataKeys, Map<String,String> encryptionContext)