类 KMSEncryptionMaterials

  • 所有已实现的接口:
    java.io.Serializable

    public class KMSEncryptionMaterials
    extends EncryptionMaterials
    implements java.io.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.

    另请参阅:
    序列化表格
    • 字段详细资料

      • CUSTOMER_MASTER_KEY_ID

        public static final 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

        public KMSEncryptionMaterials​(java.lang.String defaultCustomerMasterKeyId)
        参数:
        defaultCustomerMasterKeyId - KMS's customer master key id; must not be null
    • 方法详细资料

      • getKeyPair

        public final java.security.KeyPair getKeyPair()
        Always throws UnsupportedOperationException.
        覆盖:
        getKeyPair 在类中 EncryptionMaterials
        返回:
        the key pair stored in this EncryptionMaterials object.
      • getSymmetricKey

        public final javax.crypto.SecretKey getSymmetricKey()
        Always throws UnsupportedOperationException.
        覆盖:
        getSymmetricKey 在类中 EncryptionMaterials
        返回:
        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.
        覆盖:
        isKMSEnabled 在类中 EncryptionMaterials
        返回:
        true
      • getCustomerMasterKeyId

        public java.lang.String getCustomerMasterKeyId()
        Returns the default KMS's Customer Master Key ID; or null if there isn't one.
        覆盖:
        getCustomerMasterKeyId 在类中 EncryptionMaterials
      • toString

        public java.lang.String toString()
        覆盖:
        toString 在类中 java.lang.Object