Package | Description |
---|---|
com.amazonaws.encryptionsdk |
Contains
AwsCrypto , 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 create
MasterKey s backed
by AWS KMS keys. |
Modifier and Type | Method and Description |
---|---|
protected AwsCryptoException |
MasterKeyProvider.buildCannotDecryptDksException() |
protected AwsCryptoException |
MasterKeyProvider.buildCannotDecryptDksException(List<? extends Throwable> t) |
protected AwsCryptoException |
MasterKeyProvider.buildCannotDecryptDksException(Throwable t) |
Modifier and Type | Method and Description |
---|---|
abstract DataKey<K> |
MasterKeyProvider.decryptDataKey(CryptoAlgorithm algorithm,
Collection<? extends EncryptedDataKey> encryptedDataKeys,
Map<String,String> encryptionContext)
Iterates through
encryptedDataKeys and returns the first one which can be
successfully decrypted. |
Modifier and Type | Class and 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 no
DataKey s which can be decrypted. |
class |
NoSuchMasterKeyException
This exception is thrown when the SDK attempts to use a
MasterKey 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 no
MasterKeyProvider s which which support the
requested provider value. |
Modifier and Type | Method and Description |
---|---|
ProcessingSummary |
EncryptionHandler.processBytes(byte[] in,
int off,
int len,
byte[] out,
int outOff)
Encrypt a block of bytes from
in putting the plaintext result into out . |
ProcessingSummary |
DecryptionHandler.processBytes(byte[] in,
int off,
int len,
byte[] out,
int outOff)
Decrypt the ciphertext bytes provided in
in and copy the plaintext bytes to
out . |
Constructor and Description |
---|
DecryptionHandler(MasterKeyProvider<K> customerMasterKeyProvider)
Create a decryption handler using the provided master key.
|
DecryptionHandler(MasterKeyProvider<K> customerMasterKeyProvider,
CiphertextHeaders headers)
Create a decryption handler using the provided master key and already parsed
headers . |
EncryptionHandler(List<K> masterKeys,
Map<String,String> encryptionContext,
CryptoAlgorithm cryptoAlgorithm,
int frameSize)
Create an encryption handler using the provided master key and encryption context.
|
Modifier and Type | Method and Description |
---|---|
DataKey<JceMasterKey> |
KeyStoreProvider.decryptDataKey(CryptoAlgorithm algorithm,
Collection<? extends EncryptedDataKey> encryptedDataKeys,
Map<String,String> encryptionContext)
Attempts to decrypts the
encryptedDataKeys by first iterating through all
aliasNames specified in the constructor and then over
all other compatible keys in the KeyStore . |
DataKey<JceMasterKey> |
JceMasterKey.decryptDataKey(CryptoAlgorithm algorithm,
Collection<? extends EncryptedDataKey> encryptedDataKeys,
Map<String,String> encryptionContext) |
Modifier and Type | Method and 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) |
Copyright © 2016. All rights reserved.