public class KeyMetadata extends AbstractModel
Constructor and Description |
---|
KeyMetadata() |
KeyMetadata(KeyMetadata source)
NOTE: Any ambiguous key set via .set("AnyKey", "value") will be a shallow copy,
and any explicit key, i.e Foo, set via .setFoo("value") will be a deep copy.
|
Modifier and Type | Method and Description |
---|---|
String |
getAlias()
Get 作为密钥更容易辨识,更容易被人看懂的别名
|
Long |
getCreateTime()
Get 密钥创建时间
|
Long |
getCreatorUin()
Get 创建者
|
Long |
getDeletionDate()
Get 计划删除的时间
注意:此字段可能返回 null,表示取不到有效值。
|
String |
getDescription()
Get CMK的描述
|
String |
getHsmClusterId()
Get HSM 集群 ID(仅对 KMS 独占版/托管版服务实例有效)
注意:此字段可能返回 null,表示取不到有效值。
|
String |
getKeyId()
Get CMK的全局唯一标识
|
Boolean |
getKeyRotationEnabled()
Get 是否开启了密钥轮换功能
|
String |
getKeyState()
Get CMK的状态, 取值为:Enabled | Disabled | PendingDelete | PendingImport | Archived
|
String |
getKeyUsage()
Get CMK用途,取值为: ENCRYPT_DECRYPT | ASYMMETRIC_DECRYPT_RSA_2048 | ASYMMETRIC_DECRYPT_SM2 | ASYMMETRIC_SIGN_VERIFY_SM2 | ASYMMETRIC_SIGN_VERIFY_RSA_2048 | ASYMMETRIC_SIGN_VERIFY_ECC
|
Long |
getNextRotateTime()
Get 在密钥轮换开启状态下,下次轮换的时间
|
String |
getOrigin()
Get CMK 密钥材料类型,由KMS创建的为: TENCENT_KMS, 由用户导入的类型为:EXTERNAL
注意:此字段可能返回 null,表示取不到有效值。
|
String |
getOwner()
Get CMK的创建者,用户创建的为 user,授权各云产品自动创建的为对应的产品名
|
String |
getResourceId()
Get 资源ID,格式:creatorUin/$creatorUin/$keyId
|
Long |
getType()
Get CMK类型,2 表示符合FIPS标准,4表示符合国密标准
|
Long |
getValidTo()
Get 在Origin为 EXTERNAL 时有效,表示密钥材料的有效日期, 0 表示不过期
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setAlias(String Alias)
Set 作为密钥更容易辨识,更容易被人看懂的别名
|
void |
setCreateTime(Long CreateTime)
Set 密钥创建时间
|
void |
setCreatorUin(Long CreatorUin)
Set 创建者
|
void |
setDeletionDate(Long DeletionDate)
Set 计划删除的时间
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setDescription(String Description)
Set CMK的描述
|
void |
setHsmClusterId(String HsmClusterId)
Set HSM 集群 ID(仅对 KMS 独占版/托管版服务实例有效)
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setKeyId(String KeyId)
Set CMK的全局唯一标识
|
void |
setKeyRotationEnabled(Boolean KeyRotationEnabled)
Set 是否开启了密钥轮换功能
|
void |
setKeyState(String KeyState)
Set CMK的状态, 取值为:Enabled | Disabled | PendingDelete | PendingImport | Archived
|
void |
setKeyUsage(String KeyUsage)
Set CMK用途,取值为: ENCRYPT_DECRYPT | ASYMMETRIC_DECRYPT_RSA_2048 | ASYMMETRIC_DECRYPT_SM2 | ASYMMETRIC_SIGN_VERIFY_SM2 | ASYMMETRIC_SIGN_VERIFY_RSA_2048 | ASYMMETRIC_SIGN_VERIFY_ECC
|
void |
setNextRotateTime(Long NextRotateTime)
Set 在密钥轮换开启状态下,下次轮换的时间
|
void |
setOrigin(String Origin)
Set CMK 密钥材料类型,由KMS创建的为: TENCENT_KMS, 由用户导入的类型为:EXTERNAL
注意:此字段可能返回 null,表示取不到有效值。
|
void |
setOwner(String Owner)
Set CMK的创建者,用户创建的为 user,授权各云产品自动创建的为对应的产品名
|
void |
setResourceId(String ResourceId)
Set 资源ID,格式:creatorUin/$creatorUin/$keyId
|
void |
setType(Long Type)
Set CMK类型,2 表示符合FIPS标准,4表示符合国密标准
|
void |
setValidTo(Long ValidTo)
Set 在Origin为 EXTERNAL 时有效,表示密钥材料的有效日期, 0 表示不过期
注意:此字段可能返回 null,表示取不到有效值。
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, getMultipartRequestParams, set, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, toJsonString
public KeyMetadata()
public KeyMetadata(KeyMetadata source)
public String getKeyId()
public void setKeyId(String KeyId)
KeyId
- CMK的全局唯一标识public String getAlias()
public void setAlias(String Alias)
Alias
- 作为密钥更容易辨识,更容易被人看懂的别名public Long getCreateTime()
public void setCreateTime(Long CreateTime)
CreateTime
- 密钥创建时间public String getDescription()
public void setDescription(String Description)
Description
- CMK的描述public String getKeyState()
public void setKeyState(String KeyState)
KeyState
- CMK的状态, 取值为:Enabled | Disabled | PendingDelete | PendingImport | Archivedpublic String getKeyUsage()
public void setKeyUsage(String KeyUsage)
KeyUsage
- CMK用途,取值为: ENCRYPT_DECRYPT | ASYMMETRIC_DECRYPT_RSA_2048 | ASYMMETRIC_DECRYPT_SM2 | ASYMMETRIC_SIGN_VERIFY_SM2 | ASYMMETRIC_SIGN_VERIFY_RSA_2048 | ASYMMETRIC_SIGN_VERIFY_ECCpublic Long getType()
public void setType(Long Type)
Type
- CMK类型,2 表示符合FIPS标准,4表示符合国密标准public Long getCreatorUin()
public void setCreatorUin(Long CreatorUin)
CreatorUin
- 创建者public Boolean getKeyRotationEnabled()
public void setKeyRotationEnabled(Boolean KeyRotationEnabled)
KeyRotationEnabled
- 是否开启了密钥轮换功能public String getOwner()
public void setOwner(String Owner)
Owner
- CMK的创建者,用户创建的为 user,授权各云产品自动创建的为对应的产品名public Long getNextRotateTime()
public void setNextRotateTime(Long NextRotateTime)
NextRotateTime
- 在密钥轮换开启状态下,下次轮换的时间public Long getDeletionDate()
public void setDeletionDate(Long DeletionDate)
DeletionDate
- 计划删除的时间
注意:此字段可能返回 null,表示取不到有效值。public String getOrigin()
public void setOrigin(String Origin)
Origin
- CMK 密钥材料类型,由KMS创建的为: TENCENT_KMS, 由用户导入的类型为:EXTERNAL
注意:此字段可能返回 null,表示取不到有效值。public Long getValidTo()
public void setValidTo(Long ValidTo)
ValidTo
- 在Origin为 EXTERNAL 时有效,表示密钥材料的有效日期, 0 表示不过期
注意:此字段可能返回 null,表示取不到有效值。public String getResourceId()
public void setResourceId(String ResourceId)
ResourceId
- 资源ID,格式:creatorUin/$creatorUin/$keyIdpublic String getHsmClusterId()
public void setHsmClusterId(String HsmClusterId)
HsmClusterId
- HSM 集群 ID(仅对 KMS 独占版/托管版服务实例有效)
注意:此字段可能返回 null,表示取不到有效值。Copyright © 2023. All rights reserved.