public class ImportKeyMaterialRequest extends AbstractModel
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 Base64-encoded key material that encrypted with the `PublicKey` returned by `GetParametersForImport`.
|
String |
getImportToken()
Get Import token obtained by calling `GetParametersForImport`.
|
String |
getKeyId()
Get Specifies the CMK into which to import key material, which must be the same as the one specified by `GetParametersForImport`.
|
Long |
getValidTo()
Get Unix timestamp of the key material's expiration time.
|
void |
setEncryptedKeyMaterial(String EncryptedKeyMaterial)
Set Base64-encoded key material that encrypted with the `PublicKey` returned by `GetParametersForImport`.
|
void |
setImportToken(String ImportToken)
Set Import token obtained by calling `GetParametersForImport`.
|
void |
setKeyId(String KeyId)
Set Specifies the CMK into which to import key material, which must be the same as the one specified by `GetParametersForImport`.
|
void |
setValidTo(Long ValidTo)
Set Unix timestamp of the key material's expiration time.
|
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 ImportKeyMaterialRequest()
public ImportKeyMaterialRequest(ImportKeyMaterialRequest source)
public String getEncryptedKeyMaterial()
public void setEncryptedKeyMaterial(String EncryptedKeyMaterial)
EncryptedKeyMaterial
- Base64-encoded key material that encrypted with the `PublicKey` returned by `GetParametersForImport`. For the KMS of SM-CRYPTO version, the length of the key material should be 128 bits, while for KMS of FIPS-compliant version, the length should be 256 bits.public String getImportToken()
public void setImportToken(String ImportToken)
ImportToken
- Import token obtained by calling `GetParametersForImport`.public String getKeyId()
public void setKeyId(String KeyId)
KeyId
- Specifies the CMK into which to import key material, which must be the same as the one specified by `GetParametersForImport`.public Long getValidTo()
public void setValidTo(Long ValidTo)
ValidTo
- Unix timestamp of the key material's expiration time. If this value is empty or 0, the key material will never expire. To specify the expiration time, it should be later than the current time. Maximum value: 2147443200.Copyright © 2023. All rights reserved.