Uses of Class
com.amazonaws.encryptionsdk.DataKey
Packages that use DataKey
Package
Description
Contains
AwsCrypto, the primary entry-point to the Aws
Encryption SDK.Contains logic necessary to create
MasterKeys backed by AWS
KMS keys.Contains the classes that implement the defined message format for storing the encrypted content
and the data key.
-
Uses of DataKey in com.amazonaws.encryptionsdk
Methods in com.amazonaws.encryptionsdk that return DataKeyModifier and TypeMethodDescriptionMasterKeyProvider.decryptDataKey(CryptoAlgorithm algorithm, Collection<? extends EncryptedDataKey> encryptedDataKeys, Map<String,String> encryptionContext)Iterates throughencryptedDataKeysand returns the first one which can be successfully decrypted.MasterKey.encryptDataKey(CryptoAlgorithm algorithm, Map<String,String> encryptionContext, DataKey<?> dataKey)Returns a new copy of the provideddataKeywhich is protected by thisMasterKeyfor use withalgorithmand associated with the providedencryptionContext.MasterKey.generateDataKey(CryptoAlgorithm algorithm, Map<String,String> encryptionContext)Methods in com.amazonaws.encryptionsdk with parameters of type DataKeyModifier and TypeMethodDescriptionMasterKey.encryptDataKey(CryptoAlgorithm algorithm, Map<String,String> encryptionContext, DataKey<?> dataKey)Returns a new copy of the provideddataKeywhich is protected by thisMasterKeyfor use withalgorithmand associated with the providedencryptionContext. -
Uses of DataKey in com.amazonaws.encryptionsdk.jce
Methods in com.amazonaws.encryptionsdk.jce that return DataKeyModifier 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.JceMasterKey.encryptDataKey(CryptoAlgorithm algorithm, Map<String,String> encryptionContext, DataKey<?> dataKey)JceMasterKey.generateDataKey(CryptoAlgorithm algorithm, Map<String,String> encryptionContext)Methods in com.amazonaws.encryptionsdk.jce with parameters of type DataKeyModifier and TypeMethodDescriptionJceMasterKey.encryptDataKey(CryptoAlgorithm algorithm, Map<String,String> encryptionContext, DataKey<?> dataKey) -
Uses of DataKey in com.amazonaws.encryptionsdk.kms
Methods in com.amazonaws.encryptionsdk.kms that return DataKeyModifier 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)AwsKmsMrkAwareMasterKey.encryptDataKey(CryptoAlgorithm algorithm, Map<String,String> encryptionContext, DataKey<?> dataKey)KmsMasterKey.encryptDataKey(CryptoAlgorithm algorithm, Map<String,String> encryptionContext, DataKey<?> dataKey)AwsKmsMrkAwareMasterKey.generateDataKey(CryptoAlgorithm algorithm, Map<String,String> encryptionContext)This is identical behavior toKmsMasterKey.generateDataKey(CryptoAlgorithm algorithm, Map<String,String> encryptionContext)Methods in com.amazonaws.encryptionsdk.kms with parameters of type DataKeyModifier and TypeMethodDescriptionAwsKmsMrkAwareMasterKey.encryptDataKey(CryptoAlgorithm algorithm, Map<String,String> encryptionContext, DataKey<?> dataKey)KmsMasterKey.encryptDataKey(CryptoAlgorithm algorithm, Map<String,String> encryptionContext, DataKey<?> dataKey) -
Uses of DataKey in com.amazonaws.encryptionsdk.model
Methods in com.amazonaws.encryptionsdk.model that return DataKeyModifier and TypeMethodDescriptionDataKey<?>DecryptionMaterials.Builder.getDataKey()DataKey<?>DecryptionMaterials.getDataKey()Methods in com.amazonaws.encryptionsdk.model with parameters of type DataKey