public class DirectKmsMaterialProvider extends Object implements EncryptionMaterialsProvider
AWSKMS. Currently, the HashKey, RangeKey, and TableName will be
included in the KMS EncryptionContext for wrapping/unwrapping the key. This
means that records cannot be copied/moved between tables without re-encryption.| Constructor and Description |
|---|
DirectKmsMaterialProvider(com.amazonaws.services.kms.AWSKMS kms) |
DirectKmsMaterialProvider(com.amazonaws.services.kms.AWSKMS kms,
String encryptionKeyId) |
DirectKmsMaterialProvider(com.amazonaws.services.kms.AWSKMS kms,
String encryptionKeyId,
Map<String,String> materialDescription) |
| Modifier and Type | Method and Description |
|---|---|
DecryptionMaterials |
getDecryptionMaterials(EncryptionContext context)
Retrieves encryption materials matching the specified description from some source.
|
EncryptionMaterials |
getEncryptionMaterials(EncryptionContext context)
Returns EncryptionMaterials which the caller can use for encryption.
|
void |
refresh()
Forces this encryption materials provider to refresh its encryption
material.
|
public DirectKmsMaterialProvider(com.amazonaws.services.kms.AWSKMS kms)
public DirectKmsMaterialProvider(com.amazonaws.services.kms.AWSKMS kms,
String encryptionKeyId,
Map<String,String> materialDescription)
public DirectKmsMaterialProvider(com.amazonaws.services.kms.AWSKMS kms,
String encryptionKeyId)
public DecryptionMaterials getDecryptionMaterials(EncryptionContext context)
EncryptionMaterialsProvidergetDecryptionMaterials in interface EncryptionMaterialsProvidercontext - Information to assist in selecting a the proper return value. The implementation
is free to determine the minimum necessary for successful processing.public EncryptionMaterials getEncryptionMaterials(EncryptionContext context)
EncryptionMaterialsProvidergetEncryptionMaterials in interface EncryptionMaterialsProvidercontext - Information to assist in selecting a the proper return value. The implementation
is free to determine the minimum necessary for successful processing.public void refresh()
EncryptionMaterialsProviderrefresh in interface EncryptionMaterialsProviderCopyright © 2016. All rights reserved.