|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.baidubce.AbstractBceClient
com.baidubce.services.kms.KmsClient
public class KmsClient
Provides the client for accessing the Key Manager Service.
Field Summary |
---|
Fields inherited from class com.baidubce.AbstractBceClient |
---|
config, DEFAULT_CONTENT_TYPE, DEFAULT_ENCODING, DEFAULT_SERVICE_DOMAIN, URL_PREFIX |
Constructor Summary | |
---|---|
KmsClient()
|
|
KmsClient(KmsClientConfiguration clientConfiguration)
|
Method Summary | |
---|---|
void |
cancelKeyDeletion(CancelKeyDeletionRequest request)
Cancels deletion of the specified master key. |
CreateKeyResponse |
createKey(CreateKeyRequest request)
Creates a new master key. |
DecryptResponse |
decrypt(DecryptRequest request)
Returns DecryptResponse containing plaintext which is decrypted using ciphertext. |
DescribeKeyResponse |
describeKey(DescribeKeyRequest request)
Returns DescribeKeyResponse containing deletionDate of specified master key and master key id. |
void |
disableKey(DisableKeyRequest request)
Disable the specified master key. |
void |
enableKey(EnableKeyRequest request)
Enable the specified master key. |
EncryptResponse |
encrypt(EncryptRequest request)
Returns EncryptResponse containing ciphertext which is encrypted using plaintext by master key. |
GenerateDataKeyResponse |
generateDataKey(GenerateDataKeyRequest request)
Returns GenerateDataKeyResponse containing ciphertext, keyId and plaintext which is random generated by kms. |
ListKeysResponse |
listKeys(ListKeysRequest request)
Returns ListKeysResponse containing master keys. |
ScheduleKeyDeletionResponse |
scheduleKeyDeletion(ScheduleKeyDeletionRequest request)
Returns ScheduleKeyDeletionResponse containing deletionDate of specified master key and master key id. |
void |
setInternalRequest(InternalRequest internalRequest,
StringWriter writer)
set InternalRequest with StringWriter |
Methods inherited from class com.baidubce.AbstractBceClient |
---|
getClient, getEndpoint, getServiceId, invokeHttpClient, isRegionSupported, setClient, shutdown |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public KmsClient()
public KmsClient(KmsClientConfiguration clientConfiguration)
Method Detail |
---|
public CreateKeyResponse createKey(CreateKeyRequest request) throws Exception
request
- The request object containing all options for creating master key.
Exception
public ListKeysResponse listKeys(ListKeysRequest request) throws Exception
request
- The request object containing limit and marker for listing master keys.
Exception
public EncryptResponse encrypt(EncryptRequest request) throws Exception
request
- The request object containing masterKeyId and plaintext.
Exception
public DecryptResponse decrypt(DecryptRequest request) throws Exception
request
- The request object containing ciphertext.
Exception
public GenerateDataKeyResponse generateDataKey(GenerateDataKeyRequest request) throws Exception
request
- The request object containing master key id, keySpec and numberOfBytes.
Exception
public void enableKey(EnableKeyRequest request) throws Exception
request
- The request object containing master key id.
Exception
public void disableKey(DisableKeyRequest request) throws Exception
request
- The request object containing master key id.
Exception
public ScheduleKeyDeletionResponse scheduleKeyDeletion(ScheduleKeyDeletionRequest request) throws Exception
request
- The request object containing master key id, pendingWindowsInDays.
Exception
public void cancelKeyDeletion(CancelKeyDeletionRequest request) throws Exception
request
- The request object containing master key id.
Exception
public DescribeKeyResponse describeKey(DescribeKeyRequest request) throws Exception
request
- The request object containing master key id, pendingWindowsInDays.
Exception
public void setInternalRequest(InternalRequest internalRequest, StringWriter writer)
internalRequest
- writer
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |