AmazonS3EncryptionClient
for further details.@Deprecated public class KMSEncryptionMaterials extends EncryptionMaterials implements java.io.Serializable
The KEK has no relevance on the client-side, as KMS only requires the CMK id to be used to uniquely identify the KEK on the server side.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CUSTOMER_MASTER_KEY_ID
Deprecated.
Name of the material description to be persisted in S3 for the KMS's
customer master key id.
|
| Constructor and Description |
|---|
KMSEncryptionMaterials(java.lang.String defaultCustomerMasterKeyId)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCustomerMasterKeyId()
Deprecated.
Returns the default KMS's Customer Master Key ID; or null if there
isn't one.
|
java.security.KeyPair |
getKeyPair()
Deprecated.
Always throws
UnsupportedOperationException. |
javax.crypto.SecretKey |
getSymmetricKey()
Deprecated.
Always throws
UnsupportedOperationException. |
boolean |
isKMSEnabled()
Deprecated.
Returns true if this is a KMS material description; false otherwise.
|
java.lang.String |
toString()
Deprecated.
|
addDescription, addDescriptions, getAccessor, getMaterialsDescriptionpublic static final java.lang.String CUSTOMER_MASTER_KEY_ID
public KMSEncryptionMaterials(java.lang.String defaultCustomerMasterKeyId)
defaultCustomerMasterKeyId - KMS's customer master key id; must not be nullpublic final java.security.KeyPair getKeyPair()
UnsupportedOperationException.getKeyPair in class EncryptionMaterialspublic final javax.crypto.SecretKey getSymmetricKey()
UnsupportedOperationException.getSymmetricKey in class EncryptionMaterialspublic final boolean isKMSEnabled()
isKMSEnabled in class EncryptionMaterialspublic java.lang.String getCustomerMasterKeyId()
getCustomerMasterKeyId in class EncryptionMaterialspublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2018 Amazon Web Services, Inc. All Rights Reserved.