public class KMSEncryptionMaterials extends EncryptionMaterials implements 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.
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
CUSTOMER_MASTER_KEY_ID
Name of the material description to be persisted in COS for the KMS's
customer master key id.
|
| 构造器和说明 |
|---|
KMSEncryptionMaterials(String defaultCustomerMasterKeyId) |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getCustomerMasterKeyId()
Returns the default KMS's Customer Master Key ID; or null if there
isn't one.
|
KeyPair |
getKeyPair()
Always throws
UnsupportedOperationException. |
SecretKey |
getSymmetricKey()
Always throws
UnsupportedOperationException. |
boolean |
isKMSEnabled()
Returns true if this is a KMS material description; false otherwise.
|
addDescription, addDescriptions, getAccessor, getDescription, getMaterialsDescriptionpublic KMSEncryptionMaterials(String defaultCustomerMasterKeyId)
defaultCustomerMasterKeyId - KMS's customer master key id; must not be nullpublic final KeyPair getKeyPair()
UnsupportedOperationException.getKeyPair 在类中 EncryptionMaterialspublic final SecretKey getSymmetricKey()
UnsupportedOperationException.getSymmetricKey 在类中 EncryptionMaterialspublic final boolean isKMSEnabled()
isKMSEnabled 在类中 EncryptionMaterialspublic String getCustomerMasterKeyId()
Copyright © 2021. All rights reserved.