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
MasterKeys backed by AWS
KMS keys.-
Uses of AwsCryptoException in com.amazonaws.encryptionsdk
Methods in com.amazonaws.encryptionsdk that return AwsCryptoExceptionModifier and TypeMethodDescriptionprotected AwsCryptoExceptionMasterKeyProvider.buildCannotDecryptDksException()protected AwsCryptoExceptionMasterKeyProvider.buildCannotDecryptDksException(Throwable t)protected AwsCryptoExceptionMasterKeyProvider.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 throughencryptedDataKeysand 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 TypeClassDescriptionclassThis exception is thrown when the values found in a ciphertext message are invalid or corrupt.classThis exception is thrown when there are noDataKeys which can be decrypted.classThis exception is thrown when the SDK attempts to use aMasterKeywhich either doesn't exist or to which it doesn't have access.classThis 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.classThis exception is thrown when there are noMasterKeyProviders which which support the requestedprovidervalue. -
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 ininand copy the plaintext bytes toout.EncryptionHandler.processBytes(byte[] in, int off, int len, byte[] out, int outOff)Encrypt a block of bytes frominputting 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 theencryptedDataKeysby first iterating through allaliasNamesspecified 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)