Package com.amazonaws.services.s3.model
Class KMSEncryptionMaterials
java.lang.Object
com.amazonaws.services.s3.model.EncryptionMaterials
com.amazonaws.services.s3.model.KMSEncryptionMaterials
- All Implemented Interfaces:
Serializable
KMS specific encryption materials.
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.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Name of the material description to be persisted in S3 for the KMS's customer master key id. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the default KMS's Customer Master Key ID; or null if there isn't one.final KeyPair
Always throwsUnsupportedOperationException
.final SecretKey
Always throwsUnsupportedOperationException
.final boolean
Returns true if this is a KMS material description; false otherwise.toString()
Methods inherited from class com.amazonaws.services.s3.model.EncryptionMaterials
addDescription, addDescriptions, getAccessor, getDescription, getMaterialsDescription
-
Field Details
-
CUSTOMER_MASTER_KEY_ID
Name of the material description to be persisted in S3 for the KMS's customer master key id.- See Also:
-
-
Constructor Details
-
KMSEncryptionMaterials
- Parameters:
defaultCustomerMasterKeyId
- KMS's customer master key id; must not be null
-
-
Method Details
-
getKeyPair
Always throwsUnsupportedOperationException
.- Overrides:
getKeyPair
in classEncryptionMaterials
- Returns:
- the key pair stored in this EncryptionMaterials object.
-
getSymmetricKey
Always throwsUnsupportedOperationException
.- Overrides:
getSymmetricKey
in classEncryptionMaterials
- Returns:
- the symmetric key stored in this EncryptionMaterials object.
-
isKMSEnabled
public final boolean isKMSEnabled()Returns true if this is a KMS material description; false otherwise. Always returns true.- Overrides:
isKMSEnabled
in classEncryptionMaterials
- Returns:
- true
-
getCustomerMasterKeyId
Returns the default KMS's Customer Master Key ID; or null if there isn't one.- Overrides:
getCustomerMasterKeyId
in classEncryptionMaterials
-
toString
-