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, setRegionpublic KmsClient(Credential credential, String region)
public KmsClient(Credential credential, String region, ClientProfile profile)
public ArchiveKeyResponse ArchiveKey(ArchiveKeyRequest req) throws TencentCloudSDKException
req - ArchiveKeyRequestTencentCloudSDKExceptionpublic AsymmetricRsaDecryptResponse AsymmetricRsaDecrypt(AsymmetricRsaDecryptRequest req) throws TencentCloudSDKException
req - AsymmetricRsaDecryptRequestTencentCloudSDKExceptionpublic AsymmetricSm2DecryptResponse AsymmetricSm2Decrypt(AsymmetricSm2DecryptRequest req) throws TencentCloudSDKException
req - AsymmetricSm2DecryptRequestTencentCloudSDKExceptionpublic BindCloudResourceResponse BindCloudResource(BindCloudResourceRequest req) throws TencentCloudSDKException
req - BindCloudResourceRequestTencentCloudSDKExceptionpublic CancelKeyArchiveResponse CancelKeyArchive(CancelKeyArchiveRequest req) throws TencentCloudSDKException
req - CancelKeyArchiveRequestTencentCloudSDKExceptionpublic CancelKeyDeletionResponse CancelKeyDeletion(CancelKeyDeletionRequest req) throws TencentCloudSDKException
req - CancelKeyDeletionRequestTencentCloudSDKExceptionpublic CreateKeyResponse CreateKey(CreateKeyRequest req) throws TencentCloudSDKException
req - CreateKeyRequestTencentCloudSDKExceptionpublic CreateWhiteBoxKeyResponse CreateWhiteBoxKey(CreateWhiteBoxKeyRequest req) throws TencentCloudSDKException
req - CreateWhiteBoxKeyRequestTencentCloudSDKExceptionpublic DecryptResponse Decrypt(DecryptRequest req) throws TencentCloudSDKException
req - DecryptRequestTencentCloudSDKExceptionpublic DeleteImportedKeyMaterialResponse DeleteImportedKeyMaterial(DeleteImportedKeyMaterialRequest req) throws TencentCloudSDKException
req - DeleteImportedKeyMaterialRequestTencentCloudSDKExceptionpublic DeleteWhiteBoxKeyResponse DeleteWhiteBoxKey(DeleteWhiteBoxKeyRequest req) throws TencentCloudSDKException
req - DeleteWhiteBoxKeyRequestTencentCloudSDKExceptionpublic DescribeKeyResponse DescribeKey(DescribeKeyRequest req) throws TencentCloudSDKException
req - DescribeKeyRequestTencentCloudSDKExceptionpublic DescribeKeysResponse DescribeKeys(DescribeKeysRequest req) throws TencentCloudSDKException
req - DescribeKeysRequestTencentCloudSDKExceptionpublic DescribeWhiteBoxDecryptKeyResponse DescribeWhiteBoxDecryptKey(DescribeWhiteBoxDecryptKeyRequest req) throws TencentCloudSDKException
req - DescribeWhiteBoxDecryptKeyRequestTencentCloudSDKExceptionpublic DescribeWhiteBoxDeviceFingerprintsResponse DescribeWhiteBoxDeviceFingerprints(DescribeWhiteBoxDeviceFingerprintsRequest req) throws TencentCloudSDKException
req - DescribeWhiteBoxDeviceFingerprintsRequestTencentCloudSDKExceptionpublic DescribeWhiteBoxKeyResponse DescribeWhiteBoxKey(DescribeWhiteBoxKeyRequest req) throws TencentCloudSDKException
req - DescribeWhiteBoxKeyRequestTencentCloudSDKExceptionpublic DescribeWhiteBoxKeyDetailsResponse DescribeWhiteBoxKeyDetails(DescribeWhiteBoxKeyDetailsRequest req) throws TencentCloudSDKException
req - DescribeWhiteBoxKeyDetailsRequestTencentCloudSDKExceptionpublic DescribeWhiteBoxServiceStatusResponse DescribeWhiteBoxServiceStatus(DescribeWhiteBoxServiceStatusRequest req) throws TencentCloudSDKException
req - DescribeWhiteBoxServiceStatusRequestTencentCloudSDKExceptionpublic DisableKeyResponse DisableKey(DisableKeyRequest req) throws TencentCloudSDKException
req - DisableKeyRequestTencentCloudSDKExceptionpublic DisableKeyRotationResponse DisableKeyRotation(DisableKeyRotationRequest req) throws TencentCloudSDKException
req - DisableKeyRotationRequestTencentCloudSDKExceptionpublic DisableKeysResponse DisableKeys(DisableKeysRequest req) throws TencentCloudSDKException
req - DisableKeysRequestTencentCloudSDKExceptionpublic DisableWhiteBoxKeyResponse DisableWhiteBoxKey(DisableWhiteBoxKeyRequest req) throws TencentCloudSDKException
req - DisableWhiteBoxKeyRequestTencentCloudSDKExceptionpublic DisableWhiteBoxKeysResponse DisableWhiteBoxKeys(DisableWhiteBoxKeysRequest req) throws TencentCloudSDKException
req - DisableWhiteBoxKeysRequestTencentCloudSDKExceptionpublic EnableKeyResponse EnableKey(EnableKeyRequest req) throws TencentCloudSDKException
req - EnableKeyRequestTencentCloudSDKExceptionpublic EnableKeyRotationResponse EnableKeyRotation(EnableKeyRotationRequest req) throws TencentCloudSDKException
req - EnableKeyRotationRequestTencentCloudSDKExceptionpublic EnableKeysResponse EnableKeys(EnableKeysRequest req) throws TencentCloudSDKException
req - EnableKeysRequestTencentCloudSDKExceptionpublic EnableWhiteBoxKeyResponse EnableWhiteBoxKey(EnableWhiteBoxKeyRequest req) throws TencentCloudSDKException
req - EnableWhiteBoxKeyRequestTencentCloudSDKExceptionpublic EnableWhiteBoxKeysResponse EnableWhiteBoxKeys(EnableWhiteBoxKeysRequest req) throws TencentCloudSDKException
req - EnableWhiteBoxKeysRequestTencentCloudSDKExceptionpublic EncryptResponse Encrypt(EncryptRequest req) throws TencentCloudSDKException
req - EncryptRequestTencentCloudSDKExceptionpublic EncryptByWhiteBoxResponse EncryptByWhiteBox(EncryptByWhiteBoxRequest req) throws TencentCloudSDKException
req - EncryptByWhiteBoxRequestTencentCloudSDKExceptionpublic GenerateDataKeyResponse GenerateDataKey(GenerateDataKeyRequest req) throws TencentCloudSDKException
req - GenerateDataKeyRequestTencentCloudSDKExceptionpublic GenerateRandomResponse GenerateRandom(GenerateRandomRequest req) throws TencentCloudSDKException
req - GenerateRandomRequestTencentCloudSDKExceptionpublic GetKeyRotationStatusResponse GetKeyRotationStatus(GetKeyRotationStatusRequest req) throws TencentCloudSDKException
req - GetKeyRotationStatusRequestTencentCloudSDKExceptionpublic GetParametersForImportResponse GetParametersForImport(GetParametersForImportRequest req) throws TencentCloudSDKException
req - GetParametersForImportRequestTencentCloudSDKExceptionpublic GetPublicKeyResponse GetPublicKey(GetPublicKeyRequest req) throws TencentCloudSDKException
req - GetPublicKeyRequestTencentCloudSDKExceptionpublic GetRegionsResponse GetRegions(GetRegionsRequest req) throws TencentCloudSDKException
req - GetRegionsRequestTencentCloudSDKExceptionpublic GetServiceStatusResponse GetServiceStatus(GetServiceStatusRequest req) throws TencentCloudSDKException
req - GetServiceStatusRequestTencentCloudSDKExceptionpublic ImportKeyMaterialResponse ImportKeyMaterial(ImportKeyMaterialRequest req) throws TencentCloudSDKException
req - ImportKeyMaterialRequestTencentCloudSDKExceptionpublic ListAlgorithmsResponse ListAlgorithms(ListAlgorithmsRequest req) throws TencentCloudSDKException
req - ListAlgorithmsRequestTencentCloudSDKExceptionpublic ListKeyDetailResponse ListKeyDetail(ListKeyDetailRequest req) throws TencentCloudSDKException
req - ListKeyDetailRequestTencentCloudSDKExceptionpublic ListKeysResponse ListKeys(ListKeysRequest req) throws TencentCloudSDKException
req - ListKeysRequestTencentCloudSDKExceptionpublic OverwriteWhiteBoxDeviceFingerprintsResponse OverwriteWhiteBoxDeviceFingerprints(OverwriteWhiteBoxDeviceFingerprintsRequest req) throws TencentCloudSDKException
req - OverwriteWhiteBoxDeviceFingerprintsRequestTencentCloudSDKExceptionpublic ReEncryptResponse ReEncrypt(ReEncryptRequest req) throws TencentCloudSDKException
req - ReEncryptRequestTencentCloudSDKExceptionpublic ScheduleKeyDeletionResponse ScheduleKeyDeletion(ScheduleKeyDeletionRequest req) throws TencentCloudSDKException
req - ScheduleKeyDeletionRequestTencentCloudSDKExceptionpublic SignByAsymmetricKeyResponse SignByAsymmetricKey(SignByAsymmetricKeyRequest req) throws TencentCloudSDKException
req - SignByAsymmetricKeyRequestTencentCloudSDKExceptionpublic UnbindCloudResourceResponse UnbindCloudResource(UnbindCloudResourceRequest req) throws TencentCloudSDKException
req - UnbindCloudResourceRequestTencentCloudSDKExceptionpublic UpdateAliasResponse UpdateAlias(UpdateAliasRequest req) throws TencentCloudSDKException
req - UpdateAliasRequestTencentCloudSDKExceptionpublic UpdateKeyDescriptionResponse UpdateKeyDescription(UpdateKeyDescriptionRequest req) throws TencentCloudSDKException
req - UpdateKeyDescriptionRequestTencentCloudSDKExceptionpublic VerifyByAsymmetricKeyResponse VerifyByAsymmetricKey(VerifyByAsymmetricKeyRequest req) throws TencentCloudSDKException
req - VerifyByAsymmetricKeyRequestTencentCloudSDKExceptionCopyright © 2022. All rights reserved.