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.
限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
CUSTOMER_MASTER_KEY_ID
Name of the material description to be persisted in COS for the KMS's
customer master key id.
|
构造器和说明 |
---|
KMSEncryptionMaterials(java.lang.String defaultCustomerMasterKeyId) |
限定符和类型 | 方法和说明 |
---|---|
java.lang.String |
getCustomerMasterKeyId()
Returns the default KMS's Customer Master Key ID; or null if there
isn't one.
|
java.security.KeyPair |
getKeyPair()
Always throws
UnsupportedOperationException . |
javax.crypto.SecretKey |
getSymmetricKey()
Always throws
UnsupportedOperationException . |
boolean |
isKMSEnabled()
Returns true if this is a KMS material description; false otherwise.
|
java.lang.String |
toString()
Returns a string representation of the object.
|
addDescription, addDescriptions, getAccessor, getDescription, getMaterialsDescription
public 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
在类中 EncryptionMaterials
public final javax.crypto.SecretKey getSymmetricKey()
UnsupportedOperationException
.getSymmetricKey
在类中 EncryptionMaterials
public final boolean isKMSEnabled()
isKMSEnabled
在类中 EncryptionMaterials
public java.lang.String getCustomerMasterKeyId()
public java.lang.String toString()
java.lang.Object
toString
method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.
The toString
method for class Object
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `@
', and
the unsigned hexadecimal representation of the hash code of the
object. In other words, this method returns a string equal to the
value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())
toString
在类中 java.lang.Object