类 KMSEncryptionMaterials
- java.lang.Object
-
- com.tencent.cos.xml.crypto.EncryptionMaterials
-
- com.tencent.cos.xml.crypto.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.
- 另请参阅:
- 序列化表格
-
-
字段概要
字段 修饰符和类型 字段 说明 static java.lang.StringCUSTOMER_MASTER_KEY_IDName of the material description to be persisted in COS for the KMS's customer master key id.
-
构造器概要
构造器 构造器 说明 KMSEncryptionMaterials(java.lang.String defaultCustomerMasterKeyId)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 java.lang.StringgetCustomerMasterKeyId()Returns the default KMS's Customer Master Key ID; or null if there isn't one.java.security.KeyPairgetKeyPair()Always throwsUnsupportedOperationException.javax.crypto.SecretKeygetSymmetricKey()Always throwsUnsupportedOperationException.booleanisKMSEnabled()Returns true if this is a KMS material description; false otherwise.java.lang.StringtoString()-
从类继承的方法 com.tencent.cos.xml.crypto.EncryptionMaterials
addDescription, addDescriptions, getAccessor, getDescription, getMaterialsDescription
-
-
-
-
字段详细资料
-
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.- 另请参阅:
- 常量字段值
-
-
方法详细资料
-
getKeyPair
public final java.security.KeyPair getKeyPair()
Always throwsUnsupportedOperationException.- 覆盖:
getKeyPair在类中EncryptionMaterials- 返回:
- the key pair stored in this EncryptionMaterials object.
-
getSymmetricKey
public final javax.crypto.SecretKey getSymmetricKey()
Always throwsUnsupportedOperationException.- 覆盖:
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.
-
toString
public java.lang.String toString()
- 覆盖:
toString在类中java.lang.Object
-
-