Class KmsManagementClient
- java.lang.Object
-
- com.oracle.bmc.http.internal.BaseSyncClient
-
- com.oracle.bmc.keymanagement.KmsManagementClient
-
- All Implemented Interfaces:
KmsManagement,AutoCloseable
@Generated(value="OracleSDKGenerator", comments="API Version: release") public class KmsManagementClient extends BaseSyncClient implements KmsManagement
-
-
Field Summary
Fields Modifier and Type Field Description StringclientCommonLibraryVersionCompatible SDK version, provided by the codegen.Optional<String>minimumClientCommonLibraryVersionFromClientMinimum compatible SDK version, maybe provided by the codegen.static ServiceSERVICEService instance for KmsManagement.
-
Constructor Summary
Constructors Constructor Description KmsManagementClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory)Deprecated.Use thebuilderinstead.KmsManagementClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators)Deprecated.Use thebuilderinstead.KmsManagementClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators, String endpoint)Deprecated.Use thebuilderinstead.KmsManagementClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint)Deprecated.Use thebuilderinstead.KmsManagementClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint, ExecutorService executorService)Deprecated.Use thebuilderinstead.KmsManagementClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider)Deprecated.Use thebuilderinstead.KmsManagementClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration)Deprecated.Use thebuilderinstead.KmsManagementClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator)Deprecated.Use thebuilderinstead.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BackupKeyResponsebackupKey(BackupKeyRequest request)Backs up an encrypted file that contains all key versions and metadata of the specified key so that you can restore the key later.static KmsManagementClientBuilderbuilder()Create a builder for this client.CancelKeyDeletionResponsecancelKeyDeletion(CancelKeyDeletionRequest request)Cancels the scheduled deletion of the specified key.CancelKeyVersionDeletionResponsecancelKeyVersionDeletion(CancelKeyVersionDeletionRequest request)Cancels the scheduled deletion of the specified key version.ChangeKeyCompartmentResponsechangeKeyCompartment(ChangeKeyCompartmentRequest request)Moves a key into a different compartment within the same tenancy.voidclose()CreateKeyResponsecreateKey(CreateKeyRequest request)Creates a new master encryption key.CreateKeyVersionResponsecreateKeyVersion(CreateKeyVersionRequest request)Generates a new KeyVersion resource that provides new cryptographic material for a master encryption key.DisableKeyResponsedisableKey(DisableKeyRequest request)Disables a master encryption key so it can no longer be used for encryption, decryption, or generating new data encryption keys.EnableKeyResponseenableKey(EnableKeyRequest request)Enables a master encryption key so it can be used for encryption, decryption, or generating new data encryption keys.StringgetClientCommonLibraryVersion()protected ClientConfiguratorgetDefaultConfigurator()StringgetEndpoint()GetKeyResponsegetKey(GetKeyRequest request)Gets information about the specified master encryption key.GetKeyVersionResponsegetKeyVersion(GetKeyVersionRequest request)Gets information about the specified key version.Optional<String>getMinimumClientCommonLibraryVersionFromClient()KmsManagementPaginatorsgetPaginators()Gets the pre-configured paginators available for list operations in this service which may return multiple pages of data.GetReplicationStatusResponsegetReplicationStatus(GetReplicationStatusRequest request)When a vault has a replica, each operation on the vault or its resources, such as keys, is replicated and has an associated replicationId.KmsManagementWaitersgetWaiters()Gets the pre-configured waiters available for resources for this service.GetWrappingKeyResponsegetWrappingKey(GetWrappingKeyRequest request)Gets details about the public RSA wrapping key associated with the vault in the endpoint.ImportKeyResponseimportKey(ImportKeyRequest request)Imports AES and RSA keys to create a new key.ImportKeyVersionResponseimportKeyVersion(ImportKeyVersionRequest request)Imports AES key material to create a new key version and then rotate the key to begin using the new key version.ListKeysResponselistKeys(ListKeysRequest request)Lists the master encryption keys in the specified vault and compartment.ListKeyVersionsResponselistKeyVersions(ListKeyVersionsRequest request)Lists all KeyVersion resources for the specified master encryption key.voidpopulateServiceParametersInEndpoint(String endpoint, Map<String,Object> requiredParametersMap)Populate the parameters in the endpoint with its corresponding value and update the base endpoint.voidrefreshClient()Rebuild the backingHttpClient.RestoreKeyFromFileResponserestoreKeyFromFile(RestoreKeyFromFileRequest request)Restores the specified key to the specified vault, based on information in the backup file provided.RestoreKeyFromObjectStoreResponserestoreKeyFromObjectStore(RestoreKeyFromObjectStoreRequest request)Restores the specified key to the specified vault from an Oracle Cloud Infrastructure Object Storage location.ScheduleKeyDeletionResponsescheduleKeyDeletion(ScheduleKeyDeletionRequest request)Schedules the deletion of the specified key.ScheduleKeyVersionDeletionResponsescheduleKeyVersionDeletion(ScheduleKeyVersionDeletionRequest request)Schedules the deletion of the specified key version.voidsetEndpoint(String endpoint)protected voidsetRegion(Region region)protected voidsetRegion(String regionId)voidupdateBaseEndpoint(String endpoint)This method should be used for parameterized endpoint templates only.UpdateKeyResponseupdateKey(UpdateKeyRequest request)Updates the properties of a master encryption key.voiduseRealmSpecificEndpointTemplate(boolean useOfRealmSpecificEndpointTemplateEnabled)This method should be used to enable or disable the use of realm-specific endpoint template.-
Methods inherited from class com.oracle.bmc.http.internal.BaseSyncClient
clientCall
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.AutoCloseable
close
-
Methods inherited from interface com.oracle.bmc.keymanagement.KmsManagement
getEndpoint, refreshClient, setEndpoint
-
-
-
-
Constructor Detail
-
KmsManagementClient
@Deprecated public KmsManagementClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider)
Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
authenticationDetailsProvider- The authentication details (seeBuilder#build)
-
KmsManagementClient
@Deprecated public KmsManagementClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration)
Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
authenticationDetailsProvider- The authentication details (seeBuilder#build)configuration-Builder#configuration
-
KmsManagementClient
@Deprecated public KmsManagementClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator)
Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
authenticationDetailsProvider- The authentication details (seeBuilder#build)configuration-Builder#configurationclientConfigurator-Builder#clientConfigurator
-
KmsManagementClient
@Deprecated public KmsManagementClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory)
Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
authenticationDetailsProvider- The authentication details (seeBuilder#build)configuration-Builder#configurationclientConfigurator-Builder#clientConfiguratordefaultRequestSignerFactory-Builder#requestSignerFactory
-
KmsManagementClient
@Deprecated public KmsManagementClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators)
Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
authenticationDetailsProvider- The authentication details (seeBuilder#build)configuration-Builder#configurationclientConfigurator-Builder#clientConfiguratordefaultRequestSignerFactory-Builder#requestSignerFactoryadditionalClientConfigurators-Builder#additionalClientConfigurators
-
KmsManagementClient
@Deprecated public KmsManagementClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators, String endpoint)
Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
authenticationDetailsProvider- The authentication details (seeBuilder#build)configuration-Builder#configurationclientConfigurator-Builder#clientConfiguratordefaultRequestSignerFactory-Builder#requestSignerFactoryadditionalClientConfigurators-Builder#additionalClientConfiguratorsendpoint-Builder#endpoint
-
KmsManagementClient
@Deprecated public KmsManagementClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint)
Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
authenticationDetailsProvider- The authentication details (seeBuilder#build)configuration-Builder#configurationclientConfigurator-Builder#clientConfiguratordefaultRequestSignerFactory-Builder#requestSignerFactoryadditionalClientConfigurators-Builder#additionalClientConfiguratorsendpoint-Builder#endpointsigningStrategyRequestSignerFactories-Builder#signingStrategyRequestSignerFactories
-
KmsManagementClient
@Deprecated public KmsManagementClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint, ExecutorService executorService)
Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
authenticationDetailsProvider- The authentication details (seeBuilder#build)configuration-Builder#configurationclientConfigurator-Builder#clientConfiguratordefaultRequestSignerFactory-Builder#requestSignerFactoryadditionalClientConfigurators-Builder#additionalClientConfiguratorsendpoint-Builder#endpointsigningStrategyRequestSignerFactories-Builder#signingStrategyRequestSignerFactoriesexecutorService-Builder#executorService
-
-
Method Detail
-
builder
public static KmsManagementClientBuilder builder()
Create a builder for this client.- Returns:
- builder
-
backupKey
public BackupKeyResponse backupKey(BackupKeyRequest request)
Description copied from interface:KmsManagementBacks up an encrypted file that contains all key versions and metadata of the specified key so that you can restore the key later.The file also contains the metadata of the vault that the key belonged to.
- Specified by:
backupKeyin interfaceKmsManagement- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
cancelKeyDeletion
public CancelKeyDeletionResponse cancelKeyDeletion(CancelKeyDeletionRequest request)
Description copied from interface:KmsManagementCancels the scheduled deletion of the specified key.Canceling a scheduled deletion restores the key’s lifecycle state to what it was before its scheduled deletion.
As a provisioning operation, this call is subject to a Key Management limit that applies to the total number of requests across all provisioning write operations. Key Management might throttle this call to reject an otherwise valid request when the total rate of provisioning write operations exceeds 10 requests per second for a given tenancy.
- Specified by:
cancelKeyDeletionin interfaceKmsManagement- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
cancelKeyVersionDeletion
public CancelKeyVersionDeletionResponse cancelKeyVersionDeletion(CancelKeyVersionDeletionRequest request)
Description copied from interface:KmsManagementCancels the scheduled deletion of the specified key version.Canceling a scheduled deletion restores the key version to its lifecycle state from before its scheduled deletion.
As a provisioning operation, this call is subject to a Key Management limit that applies to the total number of requests across all provisioning write operations. Key Management might throttle this call to reject an otherwise valid request when the total rate of provisioning write operations exceeds 10 requests per second for a given tenancy.
- Specified by:
cancelKeyVersionDeletionin interfaceKmsManagement- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
changeKeyCompartment
public ChangeKeyCompartmentResponse changeKeyCompartment(ChangeKeyCompartmentRequest request)
Description copied from interface:KmsManagementMoves a key into a different compartment within the same tenancy.For information about moving resources between compartments, see Moving Resources to a Different Compartment.
When provided, if-match is checked against the ETag values of the key.
As a provisioning operation, this call is subject to a Key Management limit that applies to the total number of requests across all provisioning write operations. Key Management might throttle this call to reject an otherwise valid request when the total rate of provisioning write operations exceeds 10 requests per second for a given tenancy.
- Specified by:
changeKeyCompartmentin interfaceKmsManagement- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
createKey
public CreateKeyResponse createKey(CreateKeyRequest request)
Description copied from interface:KmsManagementCreates a new master encryption key.As a management operation, this call is subject to a Key Management limit that applies to the total number of requests across all management write operations. Key Management might throttle this call to reject an otherwise valid request when the total rate of management write operations exceeds 10 requests per second for a given tenancy.
- Specified by:
createKeyin interfaceKmsManagement- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
createKeyVersion
public CreateKeyVersionResponse createKeyVersion(CreateKeyVersionRequest request)
Description copied from interface:KmsManagementGenerates a new KeyVersion resource that provides new cryptographic material for a master encryption key.The key must be in an
ENABLEDstate to be rotated.As a management operation, this call is subject to a Key Management limit that applies to the total number of requests across all management write operations. Key Management might throttle this call to reject an otherwise valid request when the total rate of management write operations exceeds 10 requests per second for a given tenancy.
- Specified by:
createKeyVersionin interfaceKmsManagement- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
disableKey
public DisableKeyResponse disableKey(DisableKeyRequest request)
Description copied from interface:KmsManagementDisables a master encryption key so it can no longer be used for encryption, decryption, or generating new data encryption keys.As a management operation, this call is subject to a Key Management limit that applies to the total number of requests across all management write operations. Key Management might throttle this call to reject an otherwise valid request when the total rate of management write operations exceeds 10 requests per second for a given tenancy.
- Specified by:
disableKeyin interfaceKmsManagement- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
enableKey
public EnableKeyResponse enableKey(EnableKeyRequest request)
Description copied from interface:KmsManagementEnables a master encryption key so it can be used for encryption, decryption, or generating new data encryption keys.As a management operation, this call is subject to a Key Management limit that applies to the total number of requests across all management write operations. Key Management might throttle this call to reject an otherwise valid request when the total rate of management write operations exceeds 10 requests per second for a given tenancy.
- Specified by:
enableKeyin interfaceKmsManagement- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
getKey
public GetKeyResponse getKey(GetKeyRequest request)
Description copied from interface:KmsManagementGets information about the specified master encryption key.As a management operation, this call is subject to a Key Management limit that applies to the total number of requests across all management read operations. Key Management might throttle this call to reject an otherwise valid request when the total rate of management read operations exceeds 10 requests per second for a given tenancy.
- Specified by:
getKeyin interfaceKmsManagement- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
getKeyVersion
public GetKeyVersionResponse getKeyVersion(GetKeyVersionRequest request)
Description copied from interface:KmsManagementGets information about the specified key version.As a management operation, this call is subject to a Key Management limit that applies to the total number of requests across all management read operations. Key Management might throttle this call to reject an otherwise valid request when the total rate of management read operations exceeds 10 requests per second for a given tenancy.
- Specified by:
getKeyVersionin interfaceKmsManagement- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
getReplicationStatus
public GetReplicationStatusResponse getReplicationStatus(GetReplicationStatusRequest request)
Description copied from interface:KmsManagementWhen a vault has a replica, each operation on the vault or its resources, such as keys, is replicated and has an associated replicationId.Replication status provides details about whether the operation associated with the given replicationId has been successfully applied across replicas.
- Specified by:
getReplicationStatusin interfaceKmsManagement- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
getWrappingKey
public GetWrappingKeyResponse getWrappingKey(GetWrappingKeyRequest request)
Description copied from interface:KmsManagementGets details about the public RSA wrapping key associated with the vault in the endpoint.Each vault has an RSA key-pair that wraps and unwraps AES key material for import into Key Management.
- Specified by:
getWrappingKeyin interfaceKmsManagement- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
importKey
public ImportKeyResponse importKey(ImportKeyRequest request)
Description copied from interface:KmsManagementImports AES and RSA keys to create a new key.The key material must be base64-encoded and wrapped by the vault’s public RSA wrapping key before you can import it. Key Management supports both RSA and AES keys. The AES keys are symmetric keys of length 128 bits (16 bytes), 192 bits (24 bytes), or 256 bits (32 bytes), and the RSA keys are asymmetric keys of length 2048 bits (256 bytes), 3072 bits (384 bytes), and 4096 bits (512 bytes). Furthermore, the key length must match what you specify at the time of import. When importing an asymmetric key, only private key must be wrapped in PKCS8 format while the corresponding public key is generated internally by KMS.
- Specified by:
importKeyin interfaceKmsManagement- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
importKeyVersion
public ImportKeyVersionResponse importKeyVersion(ImportKeyVersionRequest request)
Description copied from interface:KmsManagementImports AES key material to create a new key version and then rotate the key to begin using the new key version.The key material must be base64-encoded and wrapped by the vault’s public RSA wrapping key before you can import it. Key Management supports AES symmetric keys that are exactly 16, 24, or 32 bytes. Furthermore, the key length must match the length of the specified key and what you specify as the length at the time of import. When importing an asymmetric key, only the private key must be wrapped in PKCS8 format while the corresponding public key is generated internally by KMS.
- Specified by:
importKeyVersionin interfaceKmsManagement- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
listKeyVersions
public ListKeyVersionsResponse listKeyVersions(ListKeyVersionsRequest request)
Description copied from interface:KmsManagementLists all KeyVersion resources for the specified master encryption key.As a management operation, this call is subject to a Key Management limit that applies to the total number of requests across all management read operations. Key Management might throttle this call to reject an otherwise valid request when the total rate of management read operations exceeds 10 requests per second for a given tenancy.
- Specified by:
listKeyVersionsin interfaceKmsManagement- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
listKeys
public ListKeysResponse listKeys(ListKeysRequest request)
Description copied from interface:KmsManagementLists the master encryption keys in the specified vault and compartment.As a management operation, this call is subject to a Key Management limit that applies to the total number of requests across all management read operations. Key Management might throttle this call to reject an otherwise valid request when the total rate of management read operations exceeds 10 requests per second for a given tenancy.
- Specified by:
listKeysin interfaceKmsManagement- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
restoreKeyFromFile
public RestoreKeyFromFileResponse restoreKeyFromFile(RestoreKeyFromFileRequest request)
Description copied from interface:KmsManagementRestores the specified key to the specified vault, based on information in the backup file provided.If the vault doesn’t exist, the operation returns a response with a 404 HTTP status error code. You need to first restore the vault associated with the key.
Note: This operation consumes a stream.
If the stream supports
InputStream.mark(int)andInputStream.reset(), when a retry is necessary, the stream is reset so it starts at the beginning (or whatever the stream's position was at the time this operation is called}.Note this means that if the caller has used
InputStream.mark(int)before, then the mark will not be the same anymore after this operation, and a subsequent call toInputStream.reset()by the caller will reset the stream not to the caller's mark, but to the position the stream was in when this operation was called.If the stream is a
FileInputStream, and the stream'sFileChannelposition can be changed (like for a regular file), the stream will be wrapped in such a way that it does provide support forInputStream.mark(int)andInputStream.reset(). Then the same procedure as above is followed. If the stream'sFileChannelposition cannot be changed (like for a named pipe), then the stream's contents will be buffered in memory, as described below.If the stream does not support
InputStream.mark(int)andInputStream.reset(), then the stream is wrapped in aBufferedInputStream, which means the entire contents may be buffered in memory. Then the same procedure as above is followed.The contents of the stream, except when the stream is a
FileInputStreamwhoseFileChannelposition can be changed, should be less than 2 GiB in size if retries are used. This is because streams 2 GiB in size or larger do no guarantee that mark-and-reset can be performed. If the stream is larger, do not use built-in retries and manage retries yourself.- Specified by:
restoreKeyFromFilein interfaceKmsManagement- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
restoreKeyFromObjectStore
public RestoreKeyFromObjectStoreResponse restoreKeyFromObjectStore(RestoreKeyFromObjectStoreRequest request)
Description copied from interface:KmsManagementRestores the specified key to the specified vault from an Oracle Cloud Infrastructure Object Storage location.If the vault doesn’t exist, the operation returns a response with a 404 HTTP status error code. You need to first restore the vault associated with the key.
- Specified by:
restoreKeyFromObjectStorein interfaceKmsManagement- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
scheduleKeyDeletion
public ScheduleKeyDeletionResponse scheduleKeyDeletion(ScheduleKeyDeletionRequest request)
Description copied from interface:KmsManagementSchedules the deletion of the specified key.This sets the lifecycle state of the key to
PENDING_DELETIONand then deletes it after the specified retention period ends.As a provisioning operation, this call is subject to a Key Management limit that applies to the total number of requests across all provisioning write operations. Key Management might throttle this call to reject an otherwise valid request when the total rate of provisioning write operations exceeds 10 requests per second for a given tenancy.
- Specified by:
scheduleKeyDeletionin interfaceKmsManagement- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
scheduleKeyVersionDeletion
public ScheduleKeyVersionDeletionResponse scheduleKeyVersionDeletion(ScheduleKeyVersionDeletionRequest request)
Description copied from interface:KmsManagementSchedules the deletion of the specified key version.This sets the lifecycle state of the key version to
PENDING_DELETIONand then deletes it after the specified retention period ends.As a provisioning operation, this call is subject to a Key Management limit that applies to the total number of requests across all provisioning write operations. Key Management might throttle this call to reject an otherwise valid request when the total rate of provisioning write operations exceeds 10 requests per second for a given tenancy.
- Specified by:
scheduleKeyVersionDeletionin interfaceKmsManagement- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
updateKey
public UpdateKeyResponse updateKey(UpdateKeyRequest request)
Description copied from interface:KmsManagementUpdates the properties of a master encryption key.Specifically, you can update the
displayName,freeformTags, anddefinedTagsproperties. Furthermore, the key must be in anENABLEDorCREATINGstate to be updated.As a management operation, this call is subject to a Key Management limit that applies to the total number of requests across all management write operations. Key Management might throttle this call to reject an otherwise valid request when the total rate of management write operations exceeds 10 requests per second for a given tenancy.
- Specified by:
updateKeyin interfaceKmsManagement- Parameters:
request- The request object containing the details to send- Returns:
- A response object containing details about the completed operation
-
getWaiters
public KmsManagementWaiters getWaiters()
Description copied from interface:KmsManagementGets the pre-configured waiters available for resources for this service.- Specified by:
getWaitersin interfaceKmsManagement- Returns:
- The service waiters.
-
getPaginators
public KmsManagementPaginators getPaginators()
Description copied from interface:KmsManagementGets the pre-configured paginators available for list operations in this service which may return multiple pages of data.These paginators provide an
Iterableinterface so that service responses, or resources/records, can be iterated through without having to manually deal with pagination and page tokens.- Specified by:
getPaginatorsin interfaceKmsManagement- Returns:
- The service paginators.
-
getDefaultConfigurator
protected ClientConfigurator getDefaultConfigurator()
-
useRealmSpecificEndpointTemplate
public void useRealmSpecificEndpointTemplate(boolean useOfRealmSpecificEndpointTemplateEnabled)
This method should be used to enable or disable the use of realm-specific endpoint template.The default value is null. To enable the use of endpoint template defined for the realm in use, set the flag to true To disable the use of endpoint template defined for the realm in use, set the flag to false
- Parameters:
useOfRealmSpecificEndpointTemplateEnabled- This flag can be set to true or false to enable or disable the use of realm-specific endpoint template respectively
-
populateServiceParametersInEndpoint
public final void populateServiceParametersInEndpoint(String endpoint, Map<String,Object> requiredParametersMap)
Populate the parameters in the endpoint with its corresponding value and update the base endpoint.The value will be populated iff the parameter in endpoint is a required request path parameter or a required request query parameter. If not, the parameter in the endpoint will be ignored and left blank.
- Parameters:
endpoint- The endpoint template in userequiredParametersMap- Map of parameter name as key and value set in request path or query parameter as value
-
updateBaseEndpoint
public final void updateBaseEndpoint(String endpoint)
This method should be used for parameterized endpoint templates only.This does not include {region} and {secondLevelDomain} parameters.
- Parameters:
endpoint- The updated endpoint to use
-
setEndpoint
public final void setEndpoint(String endpoint)
-
getEndpoint
public final String getEndpoint()
-
refreshClient
public final void refreshClient()
Rebuild the backingHttpClient.This will call
ClientConfigurators again, and can be used to e.g. refresh the SSL certificate.
-
setRegion
protected void setRegion(Region region)
-
setRegion
protected void setRegion(String regionId)
-
close
public final void close()
- Specified by:
closein interfaceAutoCloseable
-
getClientCommonLibraryVersion
public String getClientCommonLibraryVersion()
-
-