Class GetParametersForImportResponse
- java.lang.Object
-
- com.tencentcloudapi.common.AbstractModel
-
- com.tencentcloudapi.kms.v20190118.models.GetParametersForImportResponse
-
public class GetParametersForImportResponse extends AbstractModel
-
-
Field Summary
-
Fields inherited from class com.tencentcloudapi.common.AbstractModel
header, skipSign
-
-
Constructor Summary
Constructors Constructor Description GetParametersForImportResponse()GetParametersForImportResponse(GetParametersForImportResponse 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 StringgetImportToken()Get 导入密钥材料需要的token,用于作为 ImportKeyMaterial 的参数。StringgetKeyId()Get CMK的唯一标识,用于指定目标导入密钥材料的CMK。LonggetParametersValidTo()Get 该导出token和公钥的有效期,超过该时间后无法导入,需要重新调用GetParametersForImport获取。StringgetPublicKey()Get 用于加密密钥材料的RSA公钥,base64编码。使用PublicKey base64解码后的公钥将导入密钥进行加密后作为 ImportKeyMaterial 的参数。StringgetRequestId()Get 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。voidsetImportToken(String ImportToken)Set 导入密钥材料需要的token,用于作为 ImportKeyMaterial 的参数。voidsetKeyId(String KeyId)Set CMK的唯一标识,用于指定目标导入密钥材料的CMK。voidsetParametersValidTo(Long ParametersValidTo)Set 该导出token和公钥的有效期,超过该时间后无法导入,需要重新调用GetParametersForImport获取。voidsetPublicKey(String PublicKey)Set 用于加密密钥材料的RSA公钥,base64编码。使用PublicKey base64解码后的公钥将导入密钥进行加密后作为 ImportKeyMaterial 的参数。voidsetRequestId(String RequestId)Set 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。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
-
GetParametersForImportResponse
public GetParametersForImportResponse()
-
GetParametersForImportResponse
public GetParametersForImportResponse(GetParametersForImportResponse 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
-
getKeyId
public String getKeyId()
Get CMK的唯一标识,用于指定目标导入密钥材料的CMK。- Returns:
- KeyId CMK的唯一标识,用于指定目标导入密钥材料的CMK。
-
setKeyId
public void setKeyId(String KeyId)
Set CMK的唯一标识,用于指定目标导入密钥材料的CMK。- Parameters:
KeyId- CMK的唯一标识,用于指定目标导入密钥材料的CMK。
-
getImportToken
public String getImportToken()
Get 导入密钥材料需要的token,用于作为 ImportKeyMaterial 的参数。- Returns:
- ImportToken 导入密钥材料需要的token,用于作为 ImportKeyMaterial 的参数。
-
setImportToken
public void setImportToken(String ImportToken)
Set 导入密钥材料需要的token,用于作为 ImportKeyMaterial 的参数。- Parameters:
ImportToken- 导入密钥材料需要的token,用于作为 ImportKeyMaterial 的参数。
-
getPublicKey
public String getPublicKey()
Get 用于加密密钥材料的RSA公钥,base64编码。使用PublicKey base64解码后的公钥将导入密钥进行加密后作为 ImportKeyMaterial 的参数。- Returns:
- PublicKey 用于加密密钥材料的RSA公钥,base64编码。使用PublicKey base64解码后的公钥将导入密钥进行加密后作为 ImportKeyMaterial 的参数。
-
setPublicKey
public void setPublicKey(String PublicKey)
Set 用于加密密钥材料的RSA公钥,base64编码。使用PublicKey base64解码后的公钥将导入密钥进行加密后作为 ImportKeyMaterial 的参数。- Parameters:
PublicKey- 用于加密密钥材料的RSA公钥,base64编码。使用PublicKey base64解码后的公钥将导入密钥进行加密后作为 ImportKeyMaterial 的参数。
-
getParametersValidTo
public Long getParametersValidTo()
Get 该导出token和公钥的有效期,超过该时间后无法导入,需要重新调用GetParametersForImport获取。- Returns:
- ParametersValidTo 该导出token和公钥的有效期,超过该时间后无法导入,需要重新调用GetParametersForImport获取。
-
setParametersValidTo
public void setParametersValidTo(Long ParametersValidTo)
Set 该导出token和公钥的有效期,超过该时间后无法导入,需要重新调用GetParametersForImport获取。- Parameters:
ParametersValidTo- 该导出token和公钥的有效期,超过该时间后无法导入,需要重新调用GetParametersForImport获取。
-
getRequestId
public String getRequestId()
Get 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。- Returns:
- RequestId 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
-
setRequestId
public void setRequestId(String RequestId)
Set 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。- Parameters:
RequestId- 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
-
-