Uses of Class
com.amazonaws.encryptionsdk.jce.JceMasterKey
Packages that use JceMasterKey
Package
Description
-
Uses of JceMasterKey in com.amazonaws.encryptionsdk.jce
Methods in com.amazonaws.encryptionsdk.jce that return JceMasterKeyModifier and TypeMethodDescriptionstatic JceMasterKey
JceMasterKey.getInstance(PublicKey wrappingKey, PrivateKey unwrappingKey, String provider, String keyId, String wrappingAlgorithm)
Returns aJceMasterKey
backed byunwrappingKey
andwrappingKey
usingwrappingAlgorithm
.static JceMasterKey
JceMasterKey.getInstance(SecretKey key, String provider, String keyId, String wrappingAlgorithm)
Returns aJceMasterKey
backed bykey
usingwrappingAlgorithm
.KeyStoreProvider.getMasterKey(String provider, String keyId)
Returns aJceMasterKey
corresponding to the entry in theKeyStore
with the specified alias and compatible algorithm.Methods in com.amazonaws.encryptionsdk.jce that return types with arguments of type JceMasterKeyModifier 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
.JceMasterKey.encryptDataKey(CryptoAlgorithm algorithm, Map<String,String> encryptionContext, DataKey<?> dataKey)
JceMasterKey.generateDataKey(CryptoAlgorithm algorithm, Map<String,String> encryptionContext)
KeyStoreProvider.getMasterKeysForEncryption(MasterKeyRequest request)
ReturnsJceMasterKey
s corresponding to thealiasNames
passed into the constructor.