public class KmsClient extends AbstractClient
gson, HTTP_RSP_OK, SDK_VERSION
Constructor and Description |
---|
KmsClient(Credential credential,
String region) |
KmsClient(Credential credential,
String region,
ClientProfile profile) |
Modifier and Type | Method and Description |
---|---|
ArchiveKeyResponse |
ArchiveKey(ArchiveKeyRequest req)
This API is used to archive keys.
|
AsymmetricRsaDecryptResponse |
AsymmetricRsaDecrypt(AsymmetricRsaDecryptRequest req)
This API is used to decrypt data with the specified private key that is encrypted with RSA asymmetric cryptographic algorithm.
|
AsymmetricSm2DecryptResponse |
AsymmetricSm2Decrypt(AsymmetricSm2DecryptRequest req)
This API is used to decrypt data with the specified private key that is encrypted with SM2 asymmetric cryptographic algorithm.
|
BindCloudResourceResponse |
BindCloudResource(BindCloudResourceRequest req)
This API is used to bind a key with a Tencent Cloud resource.
|
CancelKeyArchiveResponse |
CancelKeyArchive(CancelKeyArchiveRequest req)
This API is used to unarchive keys.
|
CancelKeyDeletionResponse |
CancelKeyDeletion(CancelKeyDeletionRequest req)
Cancel the scheduled deletion of CMK
|
CreateKeyResponse |
CreateKey(CreateKeyRequest req)
Create a master key CMK (Custom Master Key) for user management data keys
|
CreateWhiteBoxKeyResponse |
CreateWhiteBoxKey(CreateWhiteBoxKeyRequest req)
This API is used to create a white-box key.
|
DecryptResponse |
Decrypt(DecryptRequest req)
This API is used to decrypt the ciphertext and obtain the plaintext data.
|
DeleteImportedKeyMaterialResponse |
DeleteImportedKeyMaterial(DeleteImportedKeyMaterialRequest req)
This API is used to delete the imported key material.
|
DeleteWhiteBoxKeyResponse |
DeleteWhiteBoxKey(DeleteWhiteBoxKeyRequest req)
This API is used to delete a white-box key.
|
DescribeKeyResponse |
DescribeKey(DescribeKeyRequest req)
This API is used to get the attribute details of the CMK with a specified `KeyId`.
|
DescribeKeysResponse |
DescribeKeys(DescribeKeysRequest req)
This API is used to get the attribute information of CMKs in batches.
|
DescribeWhiteBoxDecryptKeyResponse |
DescribeWhiteBoxDecryptKey(DescribeWhiteBoxDecryptKeyRequest req)
This API is used to get a white-box decryption key.
|
DescribeWhiteBoxDeviceFingerprintsResponse |
DescribeWhiteBoxDeviceFingerprints(DescribeWhiteBoxDeviceFingerprintsRequest req)
This API is used to get the device fingerprint list of a specified key.
|
DescribeWhiteBoxKeyResponse |
DescribeWhiteBoxKey(DescribeWhiteBoxKeyRequest req)
This API is used to display white-box key information.
|
DescribeWhiteBoxKeyDetailsResponse |
DescribeWhiteBoxKeyDetails(DescribeWhiteBoxKeyDetailsRequest req)
This API is used to get the white-box key list.
|
DescribeWhiteBoxServiceStatusResponse |
DescribeWhiteBoxServiceStatus(DescribeWhiteBoxServiceStatusRequest req)
This API is used to get the white-box key service status.
|
DisableKeyResponse |
DisableKey(DisableKeyRequest req)
This API is used to disable a master key.
|
DisableKeyRotationResponse |
DisableKeyRotation(DisableKeyRotationRequest req)
Disabled key rotation for the specified CMK.
|
DisableKeysResponse |
DisableKeys(DisableKeysRequest req)
This API is used to batch prohibit the use of CMK.
|
DisableWhiteBoxKeyResponse |
DisableWhiteBoxKey(DisableWhiteBoxKeyRequest req)
This API is used to disable a white-box key.
|
DisableWhiteBoxKeysResponse |
DisableWhiteBoxKeys(DisableWhiteBoxKeysRequest req)
This API is used to disable white-box keys in batches.
|
EnableKeyResponse |
EnableKey(EnableKeyRequest req)
Enable a specified CMK.
|
EnableKeyRotationResponse |
EnableKeyRotation(EnableKeyRotationRequest req)
Turn on the key rotation function for the specified CMK.
|
EnableKeysResponse |
EnableKeys(EnableKeysRequest req)
This API is used to enable CMK in batches.
|
EnableWhiteBoxKeyResponse |
EnableWhiteBoxKey(EnableWhiteBoxKeyRequest req)
This API is used to enable a white-box key.
|
EnableWhiteBoxKeysResponse |
EnableWhiteBoxKeys(EnableWhiteBoxKeysRequest req)
This API is used to enable white-box keys in batches.
|
EncryptResponse |
Encrypt(EncryptRequest req)
This API is used to encrypt any data up to 4KB.
|
EncryptByWhiteBoxResponse |
EncryptByWhiteBox(EncryptByWhiteBoxRequest req)
This API is used to encrypt data with a white-box key.
|
GenerateDataKeyResponse |
GenerateDataKey(GenerateDataKeyRequest req)
This API generates a data key, which you can use to encrypt local data.
|
GenerateRandomResponse |
GenerateRandom(GenerateRandomRequest req)
This API is used to generate a random number.
|
GetKeyRotationStatusResponse |
GetKeyRotationStatus(GetKeyRotationStatusRequest req)
Query whether the specified CMK has the key rotation function.
|
GetParametersForImportResponse |
GetParametersForImport(GetParametersForImportRequest req)
This API is used to obtain the parameters of the material to be imported into a CMK.
|
GetPublicKeyResponse |
GetPublicKey(GetPublicKeyRequest req)
This API is used to get the public key of an asymmetric KMS key (which must be enabled).
|
GetRegionsResponse |
GetRegions(GetRegionsRequest req)
This API is used to return all regions support KMS service.
|
GetServiceStatusResponse |
GetServiceStatus(GetServiceStatusRequest req)
Used to query whether the user has activated the KMS service.
|
ImportKeyMaterialResponse |
ImportKeyMaterial(ImportKeyMaterialRequest req)
This API is used to import key material into an EXTERNAL CMK.
|
ListAlgorithmsResponse |
ListAlgorithms(ListAlgorithmsRequest req)
This API is used to list the encryption methods supported in the current region.
|
ListKeyDetailResponse |
ListKeyDetail(ListKeyDetailRequest req)
Get the master key list details according to the specified Offset and Limit.
|
ListKeysResponse |
ListKeys(ListKeysRequest req)
This API is used to list the KeyIds of CMKs in `Enabled`, `Disabled`, and `PendingImport` status under the account.
|
OverwriteWhiteBoxDeviceFingerprintsResponse |
OverwriteWhiteBoxDeviceFingerprints(OverwriteWhiteBoxDeviceFingerprintsRequest req)
This API is used to overwrite the device fingerprint information of a specified key.
|
ReEncryptResponse |
ReEncrypt(ReEncryptRequest req)
Re-encrypt the ciphertext using the specified CMK.
|
ScheduleKeyDeletionResponse |
ScheduleKeyDeletion(ScheduleKeyDeletionRequest req)
CMK planned deletion API, used to specify the time of CMK deletion, the optional time interval is [7,30] days
|
SignByAsymmetricKeyResponse |
SignByAsymmetricKey(SignByAsymmetricKeyRequest req)
This API is used to generate a signature with an asymmetric key.
|
UnbindCloudResourceResponse |
UnbindCloudResource(UnbindCloudResourceRequest req)
This API is used to unbind a key with a Tencent Cloud resource, indicating that the Tencent Cloud resource will not use the key any longer.
|
UpdateAliasResponse |
UpdateAlias(UpdateAliasRequest req)
This API is used to modify the alias of a CMK.
|
UpdateKeyDescriptionResponse |
UpdateKeyDescription(UpdateKeyDescriptionRequest req)
This API is used to modify the description of the specified CMK.
|
VerifyByAsymmetricKeyResponse |
VerifyByAsymmetricKey(VerifyByAsymmetricKeyRequest req)
This API is used to verify a signature with an asymmetric key.
|
call, getClientProfile, getCredential, getRegion, internalRequest, setClientProfile, setCredential, setRegion
public KmsClient(Credential credential, String region)
public KmsClient(Credential credential, String region, ClientProfile profile)
public ArchiveKeyResponse ArchiveKey(ArchiveKeyRequest req) throws TencentCloudSDKException
req
- ArchiveKeyRequestTencentCloudSDKException
public AsymmetricRsaDecryptResponse AsymmetricRsaDecrypt(AsymmetricRsaDecryptRequest req) throws TencentCloudSDKException
req
- AsymmetricRsaDecryptRequestTencentCloudSDKException
public AsymmetricSm2DecryptResponse AsymmetricSm2Decrypt(AsymmetricSm2DecryptRequest req) throws TencentCloudSDKException
req
- AsymmetricSm2DecryptRequestTencentCloudSDKException
public BindCloudResourceResponse BindCloudResource(BindCloudResourceRequest req) throws TencentCloudSDKException
req
- BindCloudResourceRequestTencentCloudSDKException
public CancelKeyArchiveResponse CancelKeyArchive(CancelKeyArchiveRequest req) throws TencentCloudSDKException
req
- CancelKeyArchiveRequestTencentCloudSDKException
public CancelKeyDeletionResponse CancelKeyDeletion(CancelKeyDeletionRequest req) throws TencentCloudSDKException
req
- CancelKeyDeletionRequestTencentCloudSDKException
public CreateKeyResponse CreateKey(CreateKeyRequest req) throws TencentCloudSDKException
req
- CreateKeyRequestTencentCloudSDKException
public CreateWhiteBoxKeyResponse CreateWhiteBoxKey(CreateWhiteBoxKeyRequest req) throws TencentCloudSDKException
req
- CreateWhiteBoxKeyRequestTencentCloudSDKException
public DecryptResponse Decrypt(DecryptRequest req) throws TencentCloudSDKException
req
- DecryptRequestTencentCloudSDKException
public DeleteImportedKeyMaterialResponse DeleteImportedKeyMaterial(DeleteImportedKeyMaterialRequest req) throws TencentCloudSDKException
req
- DeleteImportedKeyMaterialRequestTencentCloudSDKException
public DeleteWhiteBoxKeyResponse DeleteWhiteBoxKey(DeleteWhiteBoxKeyRequest req) throws TencentCloudSDKException
req
- DeleteWhiteBoxKeyRequestTencentCloudSDKException
public DescribeKeyResponse DescribeKey(DescribeKeyRequest req) throws TencentCloudSDKException
req
- DescribeKeyRequestTencentCloudSDKException
public DescribeKeysResponse DescribeKeys(DescribeKeysRequest req) throws TencentCloudSDKException
req
- DescribeKeysRequestTencentCloudSDKException
public DescribeWhiteBoxDecryptKeyResponse DescribeWhiteBoxDecryptKey(DescribeWhiteBoxDecryptKeyRequest req) throws TencentCloudSDKException
req
- DescribeWhiteBoxDecryptKeyRequestTencentCloudSDKException
public DescribeWhiteBoxDeviceFingerprintsResponse DescribeWhiteBoxDeviceFingerprints(DescribeWhiteBoxDeviceFingerprintsRequest req) throws TencentCloudSDKException
req
- DescribeWhiteBoxDeviceFingerprintsRequestTencentCloudSDKException
public DescribeWhiteBoxKeyResponse DescribeWhiteBoxKey(DescribeWhiteBoxKeyRequest req) throws TencentCloudSDKException
req
- DescribeWhiteBoxKeyRequestTencentCloudSDKException
public DescribeWhiteBoxKeyDetailsResponse DescribeWhiteBoxKeyDetails(DescribeWhiteBoxKeyDetailsRequest req) throws TencentCloudSDKException
req
- DescribeWhiteBoxKeyDetailsRequestTencentCloudSDKException
public DescribeWhiteBoxServiceStatusResponse DescribeWhiteBoxServiceStatus(DescribeWhiteBoxServiceStatusRequest req) throws TencentCloudSDKException
req
- DescribeWhiteBoxServiceStatusRequestTencentCloudSDKException
public DisableKeyResponse DisableKey(DisableKeyRequest req) throws TencentCloudSDKException
req
- DisableKeyRequestTencentCloudSDKException
public DisableKeyRotationResponse DisableKeyRotation(DisableKeyRotationRequest req) throws TencentCloudSDKException
req
- DisableKeyRotationRequestTencentCloudSDKException
public DisableKeysResponse DisableKeys(DisableKeysRequest req) throws TencentCloudSDKException
req
- DisableKeysRequestTencentCloudSDKException
public DisableWhiteBoxKeyResponse DisableWhiteBoxKey(DisableWhiteBoxKeyRequest req) throws TencentCloudSDKException
req
- DisableWhiteBoxKeyRequestTencentCloudSDKException
public DisableWhiteBoxKeysResponse DisableWhiteBoxKeys(DisableWhiteBoxKeysRequest req) throws TencentCloudSDKException
req
- DisableWhiteBoxKeysRequestTencentCloudSDKException
public EnableKeyResponse EnableKey(EnableKeyRequest req) throws TencentCloudSDKException
req
- EnableKeyRequestTencentCloudSDKException
public EnableKeyRotationResponse EnableKeyRotation(EnableKeyRotationRequest req) throws TencentCloudSDKException
req
- EnableKeyRotationRequestTencentCloudSDKException
public EnableKeysResponse EnableKeys(EnableKeysRequest req) throws TencentCloudSDKException
req
- EnableKeysRequestTencentCloudSDKException
public EnableWhiteBoxKeyResponse EnableWhiteBoxKey(EnableWhiteBoxKeyRequest req) throws TencentCloudSDKException
req
- EnableWhiteBoxKeyRequestTencentCloudSDKException
public EnableWhiteBoxKeysResponse EnableWhiteBoxKeys(EnableWhiteBoxKeysRequest req) throws TencentCloudSDKException
req
- EnableWhiteBoxKeysRequestTencentCloudSDKException
public EncryptResponse Encrypt(EncryptRequest req) throws TencentCloudSDKException
req
- EncryptRequestTencentCloudSDKException
public EncryptByWhiteBoxResponse EncryptByWhiteBox(EncryptByWhiteBoxRequest req) throws TencentCloudSDKException
req
- EncryptByWhiteBoxRequestTencentCloudSDKException
public GenerateDataKeyResponse GenerateDataKey(GenerateDataKeyRequest req) throws TencentCloudSDKException
req
- GenerateDataKeyRequestTencentCloudSDKException
public GenerateRandomResponse GenerateRandom(GenerateRandomRequest req) throws TencentCloudSDKException
req
- GenerateRandomRequestTencentCloudSDKException
public GetKeyRotationStatusResponse GetKeyRotationStatus(GetKeyRotationStatusRequest req) throws TencentCloudSDKException
req
- GetKeyRotationStatusRequestTencentCloudSDKException
public GetParametersForImportResponse GetParametersForImport(GetParametersForImportRequest req) throws TencentCloudSDKException
req
- GetParametersForImportRequestTencentCloudSDKException
public GetPublicKeyResponse GetPublicKey(GetPublicKeyRequest req) throws TencentCloudSDKException
req
- GetPublicKeyRequestTencentCloudSDKException
public GetRegionsResponse GetRegions(GetRegionsRequest req) throws TencentCloudSDKException
req
- GetRegionsRequestTencentCloudSDKException
public GetServiceStatusResponse GetServiceStatus(GetServiceStatusRequest req) throws TencentCloudSDKException
req
- GetServiceStatusRequestTencentCloudSDKException
public ImportKeyMaterialResponse ImportKeyMaterial(ImportKeyMaterialRequest req) throws TencentCloudSDKException
req
- ImportKeyMaterialRequestTencentCloudSDKException
public ListAlgorithmsResponse ListAlgorithms(ListAlgorithmsRequest req) throws TencentCloudSDKException
req
- ListAlgorithmsRequestTencentCloudSDKException
public ListKeyDetailResponse ListKeyDetail(ListKeyDetailRequest req) throws TencentCloudSDKException
req
- ListKeyDetailRequestTencentCloudSDKException
public ListKeysResponse ListKeys(ListKeysRequest req) throws TencentCloudSDKException
req
- ListKeysRequestTencentCloudSDKException
public OverwriteWhiteBoxDeviceFingerprintsResponse OverwriteWhiteBoxDeviceFingerprints(OverwriteWhiteBoxDeviceFingerprintsRequest req) throws TencentCloudSDKException
req
- OverwriteWhiteBoxDeviceFingerprintsRequestTencentCloudSDKException
public ReEncryptResponse ReEncrypt(ReEncryptRequest req) throws TencentCloudSDKException
req
- ReEncryptRequestTencentCloudSDKException
public ScheduleKeyDeletionResponse ScheduleKeyDeletion(ScheduleKeyDeletionRequest req) throws TencentCloudSDKException
req
- ScheduleKeyDeletionRequestTencentCloudSDKException
public SignByAsymmetricKeyResponse SignByAsymmetricKey(SignByAsymmetricKeyRequest req) throws TencentCloudSDKException
req
- SignByAsymmetricKeyRequestTencentCloudSDKException
public UnbindCloudResourceResponse UnbindCloudResource(UnbindCloudResourceRequest req) throws TencentCloudSDKException
req
- UnbindCloudResourceRequestTencentCloudSDKException
public UpdateAliasResponse UpdateAlias(UpdateAliasRequest req) throws TencentCloudSDKException
req
- UpdateAliasRequestTencentCloudSDKException
public UpdateKeyDescriptionResponse UpdateKeyDescription(UpdateKeyDescriptionRequest req) throws TencentCloudSDKException
req
- UpdateKeyDescriptionRequestTencentCloudSDKException
public VerifyByAsymmetricKeyResponse VerifyByAsymmetricKey(VerifyByAsymmetricKeyRequest req) throws TencentCloudSDKException
req
- VerifyByAsymmetricKeyRequestTencentCloudSDKException
Copyright © 2023. All rights reserved.