@Generated(value="OracleSDKGenerator", comments="API Version: release") public interface KmsCryptoAsync extends AutoCloseable
API for managing and performing operations with keys and vaults. (For the API for managing secrets, see the Vault Service Secret Management API. For the API for retrieving secrets, see the Vault Service Secret Retrieval API.)
Modifier and Type | Method and Description |
---|---|
Future<DecryptResponse> |
decrypt(DecryptRequest request,
AsyncHandler<DecryptRequest,DecryptResponse> handler)
Decrypts data using the given
DecryptDataDetails
resource.
|
Future<EncryptResponse> |
encrypt(EncryptRequest request,
AsyncHandler<EncryptRequest,EncryptResponse> handler)
Encrypts data using the given
EncryptDataDetails
resource.
|
Future<ExportKeyResponse> |
exportKey(ExportKeyRequest request,
AsyncHandler<ExportKeyRequest,ExportKeyResponse> handler)
Exports a specific version of a master encryption key according to the details of the
request.
|
Future<GenerateDataEncryptionKeyResponse> |
generateDataEncryptionKey(GenerateDataEncryptionKeyRequest request,
AsyncHandler<GenerateDataEncryptionKeyRequest,GenerateDataEncryptionKeyResponse> handler)
Generates a key that you can use to encrypt or decrypt data.
|
String |
getEndpoint()
Gets the set endpoint for REST call (ex, https://www.example.com)
|
void |
refreshClient()
Rebuilds the client from scratch.
|
void |
setEndpoint(String endpoint)
Sets the endpoint to call (ex, https://www.example.com).
|
Future<SignResponse> |
sign(SignRequest request,
AsyncHandler<SignRequest,SignResponse> handler)
Creates a digital signature for a message or message digest by using the private key of a
public-private key pair, also known as an asymmetric key.
|
Future<VerifyResponse> |
verify(VerifyRequest request,
AsyncHandler<VerifyRequest,VerifyResponse> handler)
Verifies a digital signature that was generated by the
Sign operation by using
the public key of the same asymmetric key that was used to sign the data.
|
close
void refreshClient()
Rebuilds the client from scratch. Useful to refresh certificates.
void setEndpoint(String endpoint)
Sets the endpoint to call (ex, https://www.example.com).
endpoint
- The endpoint of the serice.String getEndpoint()
Gets the set endpoint for REST call (ex, https://www.example.com)
Future<DecryptResponse> decrypt(DecryptRequest request, AsyncHandler<DecryptRequest,DecryptResponse> handler)
Decrypts data using the given DecryptDataDetails resource.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<EncryptResponse> encrypt(EncryptRequest request, AsyncHandler<EncryptRequest,EncryptResponse> handler)
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 sendhandler
- The request handler to invoke upon completion, may be null.Future<ExportKeyResponse> exportKey(ExportKeyRequest request, AsyncHandler<ExportKeyRequest,ExportKeyResponse> handler)
Exports a specific version of a master encryption key according to the details of the request. For their protection, keys that you create and store on a hardware security module (HSM) can never leave the HSM. You can only export keys stored on the server. For export, the key version is encrypted by an RSA public key that you provide.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<GenerateDataEncryptionKeyResponse> generateDataEncryptionKey(GenerateDataEncryptionKeyRequest request, AsyncHandler<GenerateDataEncryptionKeyRequest,GenerateDataEncryptionKeyResponse> handler)
Generates a key that you can use to encrypt or decrypt data.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<SignResponse> sign(SignRequest request, AsyncHandler<SignRequest,SignResponse> handler)
Creates a digital signature for a message or message digest by using the private key of a public-private key pair, also known as an asymmetric key. To verify the generated signature, you can use the Verify operation. Or, if you want to validate the signature outside of the service, you can do so by using the public key of the same asymmetric key.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<VerifyResponse> verify(VerifyRequest request, AsyncHandler<VerifyRequest,VerifyResponse> handler)
Verifies a digital signature that was generated by the Sign operation by using the public key of the same asymmetric key that was used to sign the data. If you want to validate the digital signature outside of the service, you can do so by using the public key of the asymmetric key.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Copyright © 2016–2023. All rights reserved.