Class ImportKeyMaterialRequest
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.kms.v20190118.models.ImportKeyMaterialRequest
-
public class ImportKeyMaterialRequest extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Constructor Summary
Constructors Constructor Description ImportKeyMaterialRequest()ImportKeyMaterialRequest(ImportKeyMaterialRequest 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetEncryptedKeyMaterial()Get 使用GetParametersForImport 返回的PublicKey加密后的密钥材料base64编码。对于国密版本region的KMS,导入的密钥材料长度要求为 128 bit,FIPS版本region的KMS, 导入的密钥材料长度要求为 256 bit。StringgetImportToken()Get 通过调用GetParametersForImport获得的导入令牌。StringgetKeyId()Get 指定导入密钥材料的CMK,需要和GetParametersForImport 指定的CMK相同。LonggetValidTo()Get 密钥材料过期时间 unix 时间戳,不指定或者 0 表示密钥材料不会过期,若指定过期时间,需要大于当前时间点,最大支持 2147443200。voidsetEncryptedKeyMaterial(String EncryptedKeyMaterial)Set 使用GetParametersForImport 返回的PublicKey加密后的密钥材料base64编码。对于国密版本region的KMS,导入的密钥材料长度要求为 128 bit,FIPS版本region的KMS, 导入的密钥材料长度要求为 256 bit。voidsetImportToken(String ImportToken)Set 通过调用GetParametersForImport获得的导入令牌。voidsetKeyId(String KeyId)Set 指定导入密钥材料的CMK,需要和GetParametersForImport 指定的CMK相同。voidsetValidTo(Long ValidTo)Set 密钥材料过期时间 unix 时间戳,不指定或者 0 表示密钥材料不会过期,若指定过期时间,需要大于当前时间点,最大支持 2147443200。voidtoMap(HashMap<String,String> map, String prefix)Internal implementation, normal users should not use it.-
Methods inherited from class com.tencentcloudapi.common.AbstractModel
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
-
-
-
-
Constructor Detail
-
ImportKeyMaterialRequest
public ImportKeyMaterialRequest()
-
ImportKeyMaterialRequest
public ImportKeyMaterialRequest(ImportKeyMaterialRequest 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.
-
-
Method Detail
-
getEncryptedKeyMaterial
public String getEncryptedKeyMaterial()
Get 使用GetParametersForImport 返回的PublicKey加密后的密钥材料base64编码。对于国密版本region的KMS,导入的密钥材料长度要求为 128 bit,FIPS版本region的KMS, 导入的密钥材料长度要求为 256 bit。- Returns:
- EncryptedKeyMaterial 使用GetParametersForImport 返回的PublicKey加密后的密钥材料base64编码。对于国密版本region的KMS,导入的密钥材料长度要求为 128 bit,FIPS版本region的KMS, 导入的密钥材料长度要求为 256 bit。
-
setEncryptedKeyMaterial
public void setEncryptedKeyMaterial(String EncryptedKeyMaterial)
Set 使用GetParametersForImport 返回的PublicKey加密后的密钥材料base64编码。对于国密版本region的KMS,导入的密钥材料长度要求为 128 bit,FIPS版本region的KMS, 导入的密钥材料长度要求为 256 bit。- Parameters:
EncryptedKeyMaterial- 使用GetParametersForImport 返回的PublicKey加密后的密钥材料base64编码。对于国密版本region的KMS,导入的密钥材料长度要求为 128 bit,FIPS版本region的KMS, 导入的密钥材料长度要求为 256 bit。
-
getImportToken
public String getImportToken()
Get 通过调用GetParametersForImport获得的导入令牌。- Returns:
- ImportToken 通过调用GetParametersForImport获得的导入令牌。
-
setImportToken
public void setImportToken(String ImportToken)
Set 通过调用GetParametersForImport获得的导入令牌。- Parameters:
ImportToken- 通过调用GetParametersForImport获得的导入令牌。
-
getKeyId
public String getKeyId()
Get 指定导入密钥材料的CMK,需要和GetParametersForImport 指定的CMK相同。- Returns:
- KeyId 指定导入密钥材料的CMK,需要和GetParametersForImport 指定的CMK相同。
-
setKeyId
public void setKeyId(String KeyId)
Set 指定导入密钥材料的CMK,需要和GetParametersForImport 指定的CMK相同。- Parameters:
KeyId- 指定导入密钥材料的CMK,需要和GetParametersForImport 指定的CMK相同。
-
getValidTo
public Long getValidTo()
Get 密钥材料过期时间 unix 时间戳,不指定或者 0 表示密钥材料不会过期,若指定过期时间,需要大于当前时间点,最大支持 2147443200。- Returns:
- ValidTo 密钥材料过期时间 unix 时间戳,不指定或者 0 表示密钥材料不会过期,若指定过期时间,需要大于当前时间点,最大支持 2147443200。
-
setValidTo
public void setValidTo(Long ValidTo)
Set 密钥材料过期时间 unix 时间戳,不指定或者 0 表示密钥材料不会过期,若指定过期时间,需要大于当前时间点,最大支持 2147443200。- Parameters:
ValidTo- 密钥材料过期时间 unix 时间戳,不指定或者 0 表示密钥材料不会过期,若指定过期时间,需要大于当前时间点,最大支持 2147443200。
-
-