@Generated(value="OracleSDKGenerator", comments="API Version: 20180608") public interface KmsManagementAsync extends AutoCloseable
close
void setEndpoint(String endpoint)
Sets the endpoint to call (ex, https://www.example.com).
endpoint
- The endpoint of the serice.Future<CreateKeyResponse> createKey(CreateKeyRequest request, AsyncHandler<CreateKeyRequest,CreateKeyResponse> handler)
Creates a new key.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<CreateKeyVersionResponse> createKeyVersion(CreateKeyVersionRequest request, AsyncHandler<CreateKeyVersionRequest,CreateKeyVersionResponse> handler)
Generates new cryptographic material for a key. The key must be in an ENABLED
state to be rotated.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<DisableKeyResponse> disableKey(DisableKeyRequest request, AsyncHandler<DisableKeyRequest,DisableKeyResponse> handler)
Disables a key to make it unavailable for encryption or decryption.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<EnableKeyResponse> enableKey(EnableKeyRequest request, AsyncHandler<EnableKeyRequest,EnableKeyResponse> handler)
Enables a key to make it available for encryption or decryption.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<GetKeyResponse> getKey(GetKeyRequest request, AsyncHandler<GetKeyRequest,GetKeyResponse> handler)
Gets information about the specified key.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<GetKeyVersionResponse> getKeyVersion(GetKeyVersionRequest request, AsyncHandler<GetKeyVersionRequest,GetKeyVersionResponse> handler)
Gets information about the specified key version.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListKeyVersionsResponse> listKeyVersions(ListKeyVersionsRequest request, AsyncHandler<ListKeyVersionsRequest,ListKeyVersionsResponse> handler)
Lists all key versions for the specified key.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<ListKeysResponse> listKeys(ListKeysRequest request, AsyncHandler<ListKeysRequest,ListKeysResponse> handler)
Lists the keys in the specified vault and compartment.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Future<UpdateKeyResponse> updateKey(UpdateKeyRequest request, AsyncHandler<UpdateKeyRequest,UpdateKeyResponse> handler)
Updates the properties of a key. Specifically, you can update the displayName
, freeformTags
, and definedTags
properties. Furthermore, the key must in an ACTIVE
or CREATING
state to be updated.
request
- The request object containing the details to sendhandler
- The request handler to invoke upon completion, may be null.Copyright © 2016–2019. All rights reserved.