@Generated(value="OracleSDKGenerator", comments="API Version: 20180608") public interface KmsCrypto extends AutoCloseable
Modifier and Type | Method and Description |
---|---|
DecryptResponse |
decrypt(DecryptRequest request)
Decrypts data using the given DecryptDataDetails resource.
|
EncryptResponse |
encrypt(EncryptRequest request)
Encrypts data using the given EncryptDataDetails resource.
|
GenerateDataEncryptionKeyResponse |
generateDataEncryptionKey(GenerateDataEncryptionKeyRequest request)
Generates a key that you can use to encrypt or decrypt data.
|
void |
setEndpoint(String endpoint)
Sets the endpoint to call (ex, https://www.example.com).
|
close
void setEndpoint(String endpoint)
Sets the endpoint to call (ex, https://www.example.com).
endpoint
- The endpoint of the service.DecryptResponse decrypt(DecryptRequest request)
Decrypts data using the given DecryptDataDetails resource.
request
- The request object containing the details to sendBmcException
- when an error occurs.EncryptResponse encrypt(EncryptRequest request)
Encrypts data using the given EncryptDataDetails resource. Plaintext included in the example request is a base64-encoded value of a UTF-8 string.
request
- The request object containing the details to sendBmcException
- when an error occurs.GenerateDataEncryptionKeyResponse generateDataEncryptionKey(GenerateDataEncryptionKeyRequest request)
Generates a key that you can use to encrypt or decrypt data.
request
- The request object containing the details to sendBmcException
- when an error occurs.Copyright © 2016–2019. All rights reserved.