public class ImportKeyMaterialRequest extends AbstractModel
header, skipSign
Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
String |
getEncryptedKeyMaterial()
Get 使用GetParametersForImport 返回的PublicKey加密后的密钥材料base64编码。对于国密版本region的KMS,导入的密钥材料长度要求为 128 bit,FIPS版本region的KMS, 导入的密钥材料长度要求为 256 bit。
|
String |
getImportToken()
Get 通过调用GetParametersForImport获得的导入令牌。
|
String |
getKeyId()
Get 指定导入密钥材料的CMK,需要和GetParametersForImport 指定的CMK相同。
|
Long |
getValidTo()
Get 密钥材料过期时间 unix 时间戳,不指定或者 0 表示密钥材料不会过期,若指定过期时间,需要大于当前时间点,最大支持 2147443200。
|
void |
setEncryptedKeyMaterial(String EncryptedKeyMaterial)
Set 使用GetParametersForImport 返回的PublicKey加密后的密钥材料base64编码。对于国密版本region的KMS,导入的密钥材料长度要求为 128 bit,FIPS版本region的KMS, 导入的密钥材料长度要求为 256 bit。
|
void |
setImportToken(String ImportToken)
Set 通过调用GetParametersForImport获得的导入令牌。
|
void |
setKeyId(String KeyId)
Set 指定导入密钥材料的CMK,需要和GetParametersForImport 指定的CMK相同。
|
void |
setValidTo(Long ValidTo)
Set 密钥材料过期时间 unix 时间戳,不指定或者 0 表示密钥材料不会过期,若指定过期时间,需要大于当前时间点,最大支持 2147443200。
|
void |
toMap(HashMap<String,String> map,
String prefix)
Internal implementation, normal users should not use it.
|
any, fromJsonString, getBinaryParams, GetHeader, getMultipartRequestParams, getSkipSign, isStream, set, SetHeader, setParamArrayObj, setParamArraySimple, setParamObj, setParamSimple, setSkipSign, toJsonString
public ImportKeyMaterialRequest()
public ImportKeyMaterialRequest(ImportKeyMaterialRequest source)
public String getEncryptedKeyMaterial()
public void setEncryptedKeyMaterial(String EncryptedKeyMaterial)
EncryptedKeyMaterial
- 使用GetParametersForImport 返回的PublicKey加密后的密钥材料base64编码。对于国密版本region的KMS,导入的密钥材料长度要求为 128 bit,FIPS版本region的KMS, 导入的密钥材料长度要求为 256 bit。public String getImportToken()
public void setImportToken(String ImportToken)
ImportToken
- 通过调用GetParametersForImport获得的导入令牌。public String getKeyId()
public void setKeyId(String KeyId)
KeyId
- 指定导入密钥材料的CMK,需要和GetParametersForImport 指定的CMK相同。public Long getValidTo()
public void setValidTo(Long ValidTo)
ValidTo
- 密钥材料过期时间 unix 时间戳,不指定或者 0 表示密钥材料不会过期,若指定过期时间,需要大于当前时间点,最大支持 2147443200。Copyright © 2024. All rights reserved.