Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
   /*
    * Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
    * 
    * Licensed under the Apache License, Version 2.0 (the "License").
    * You may not use this file except in compliance with the License.
    * A copy of the License is located at
    * 
    *  http://aws.amazon.com/apache2.0
    * 
   * or in the "license" file accompanying this file. This file is distributed
   * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
   * express or implied. See the License for the specific language governing
   * permissions and limitations under the License.
   */
  package com.amazonaws.services.cloudhsm;
  
  
  
Asynchronous client for accessing AWSCloudHSM. All asynchronous calls made using this client are non-blocking. Callers could either process the result and handle the exceptions in the worker thread by providing a callback handler when making the call, or use the returned Future object to check the result of the call in the calling thread. AWS CloudHSM Service
  
  public class AWSCloudHSMAsyncClient extends AWSCloudHSMClient
          implements AWSCloudHSMAsync {

    
Executor service for executing asynchronous requests.
  
      private ExecutorService executorService;
  
      private static final int DEFAULT_THREAD_POOL_SIZE = 50;

    
Constructs a new asynchronous client to invoke service methods on AWSCloudHSM. A credentials provider chain will be used that searches for credentials in this order:
  • Environment Variables - AWS_ACCESS_KEY_ID and AWS_SECRET_KEY
  • Java System Properties - aws.accessKeyId and aws.secretKey
  • Instance profile credentials delivered through the Amazon EC2 metadata service

All service calls made using this new client object are blocking, and will not return until the service call completes.

  
      public AWSCloudHSMAsyncClient() {
          this(new DefaultAWSCredentialsProviderChain());
      }

    
Constructs a new asynchronous client to invoke service methods on AWSCloudHSM. A credentials provider chain will be used that searches for credentials in this order:
  • Environment Variables - AWS_ACCESS_KEY_ID and AWS_SECRET_KEY
  • Java System Properties - aws.accessKeyId and aws.secretKey
  • Instance profile credentials delivered through the Amazon EC2 metadata service

All service calls made using this new client object are blocking, and will not return until the service call completes.

Parameters:
clientConfiguration The client configuration options controlling how this client connects to AWSCloudHSM (ex: proxy settings, retry counts, etc.).
See also:
com.amazonaws.auth.DefaultAWSCredentialsProviderChain
  
      public AWSCloudHSMAsyncClient(ClientConfiguration clientConfiguration) {
          this(new DefaultAWSCredentialsProviderChain(), clientConfiguration, Executors.newFixedThreadPool(clientConfiguration.getMaxConnections()));
      }

    
Constructs a new asynchronous client to invoke service methods on AWSCloudHSM using the specified AWS account credentials. Default client settings will be used, and a fixed size thread pool will be created for executing the asynchronous tasks.

All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.

Parameters:
awsCredentials The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.
 
     public AWSCloudHSMAsyncClient(AWSCredentials awsCredentials) {
         this(awsCredentials, Executors.newFixedThreadPool());
     }

    
Constructs a new asynchronous client to invoke service methods on AWSCloudHSM using the specified AWS account credentials and executor service. Default client settings will be used.

All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.

Parameters:
awsCredentials The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.
executorService The executor service by which all asynchronous requests will be executed.
 
     public AWSCloudHSMAsyncClient(AWSCredentials awsCredentialsExecutorService executorService) {
         super(awsCredentials);
         this. = executorService;
     }

    
Constructs a new asynchronous client to invoke service methods on AWSCloudHSM using the specified AWS account credentials, executor service, and client configuration options.

All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.

Parameters:
awsCredentials The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.
clientConfiguration Client configuration options (ex: max retry limit, proxy settings, etc).
executorService The executor service by which all asynchronous requests will be executed.
 
     public AWSCloudHSMAsyncClient(AWSCredentials awsCredentials,
                 ClientConfiguration clientConfigurationExecutorService executorService) {
         super(awsCredentialsclientConfiguration);
         this. = executorService;
     }

    
Constructs a new asynchronous client to invoke service methods on AWSCloudHSM using the specified AWS account credentials provider. Default client settings will be used, and a fixed size thread pool will be created for executing the asynchronous tasks.

All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.

Parameters:
awsCredentialsProvider The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
 
     public AWSCloudHSMAsyncClient(AWSCredentialsProvider awsCredentialsProvider) {
         this(awsCredentialsProvider, Executors.newFixedThreadPool());
     }

    
Constructs a new asynchronous client to invoke service methods on AWSCloudHSM using the specified AWS account credentials provider and executor service. Default client settings will be used.

All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.

Parameters:
awsCredentialsProvider The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
executorService The executor service by which all asynchronous requests will be executed.
 
     public AWSCloudHSMAsyncClient(AWSCredentialsProvider awsCredentialsProviderExecutorService executorService) {
         this(awsCredentialsProvidernew ClientConfiguration(), executorService);
     }

    
Constructs a new asynchronous client to invoke service methods on AWSCloudHSM using the specified AWS account credentials provider and client configuration options.

All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.

Parameters:
awsCredentialsProvider The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
clientConfiguration Client configuration options (ex: max retry limit, proxy settings, etc).
 
     public AWSCloudHSMAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
                 ClientConfiguration clientConfiguration) {
         this(awsCredentialsProviderclientConfiguration, Executors.newFixedThreadPool(clientConfiguration.getMaxConnections()));
     }

    
Constructs a new asynchronous client to invoke service methods on AWSCloudHSM using the specified AWS account credentials provider, executor service, and client configuration options.

All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.

Parameters:
awsCredentialsProvider The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
clientConfiguration Client configuration options (ex: max retry limit, proxy settings, etc).
executorService The executor service by which all asynchronous requests will be executed.
 
     public AWSCloudHSMAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
                 ClientConfiguration clientConfigurationExecutorService executorService) {
         super(awsCredentialsProviderclientConfiguration);
         this. = executorService;
     }

    
Returns the executor service used by this async client to execute requests.

Returns:
The executor service used by this async client to execute requests.
 
     public ExecutorService getExecutorService() {
         return ;
     }

    
Shuts down the client, releasing all managed resources. This includes forcibly terminating all pending asynchronous service calls. Clients who wish to give pending asynchronous service calls time to complete should call getExecutorService().shutdown() followed by getExecutorService().awaitTermination() prior to calling this method.
 
     @Override
     public void shutdown() {
         super.shutdown();
         .shutdownNow();
     }
            
    

Gets the configuration files necessary to connect to all high availability partition groups the client is associated with.

Parameters:
getConfigRequest Container for the necessary parameters to execute the GetConfig operation on AWSCloudHSM.
Returns:
A Java Future object containing the response from the GetConfig service method, as returned by AWSCloudHSM.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSCloudHSM indicating either a problem with the data in the request, or a server side issue.
 
     public Future<GetConfigResultgetConfigAsync(final GetConfigRequest getConfigRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<GetConfigResult>() {
             public GetConfigResult call() throws Exception {
                 return getConfig(getConfigRequest);
         }
     });
     }

    

Gets the configuration files necessary to connect to all high availability partition groups the client is associated with.

Parameters:
getConfigRequest Container for the necessary parameters to execute the GetConfig operation on AWSCloudHSM.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the GetConfig service method, as returned by AWSCloudHSM.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSCloudHSM indicating either a problem with the data in the request, or a server side issue.
 
             final GetConfigRequest getConfigRequest,
             final AsyncHandler<GetConfigRequestGetConfigResultasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<GetConfigResult>() {
             public GetConfigResult call() throws Exception {
               GetConfigResult result;
                 try {
                 result = getConfig(getConfigRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(getConfigRequestresult);
                  return result;
         }
     });
     }
    
    

Creates a high-availability partition group. A high-availability partition group is a group of partitions that spans multiple physical HSMs.

Parameters:
createHapgRequest Container for the necessary parameters to execute the CreateHapg operation on AWSCloudHSM.
Returns:
A Java Future object containing the response from the CreateHapg service method, as returned by AWSCloudHSM.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSCloudHSM indicating either a problem with the data in the request, or a server side issue.
 
     public Future<CreateHapgResultcreateHapgAsync(final CreateHapgRequest createHapgRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<CreateHapgResult>() {
             public CreateHapgResult call() throws Exception {
                 return createHapg(createHapgRequest);
         }
     });
     }

    

Creates a high-availability partition group. A high-availability partition group is a group of partitions that spans multiple physical HSMs.

Parameters:
createHapgRequest Container for the necessary parameters to execute the CreateHapg operation on AWSCloudHSM.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the CreateHapg service method, as returned by AWSCloudHSM.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSCloudHSM indicating either a problem with the data in the request, or a server side issue.
 
             final CreateHapgRequest createHapgRequest,
             final AsyncHandler<CreateHapgRequestCreateHapgResultasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<CreateHapgResult>() {
             public CreateHapgResult call() throws Exception {
               CreateHapgResult result;
                 try {
                 result = createHapg(createHapgRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(createHapgRequestresult);
                  return result;
         }
     });
     }
    
    

Retrieves information about a high-availability partition group.

Parameters:
describeHapgRequest Container for the necessary parameters to execute the DescribeHapg operation on AWSCloudHSM.
Returns:
A Java Future object containing the response from the DescribeHapg service method, as returned by AWSCloudHSM.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSCloudHSM indicating either a problem with the data in the request, or a server side issue.
 
     public Future<DescribeHapgResultdescribeHapgAsync(final DescribeHapgRequest describeHapgRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<DescribeHapgResult>() {
             public DescribeHapgResult call() throws Exception {
                 return describeHapg(describeHapgRequest);
         }
     });
     }

    

Retrieves information about a high-availability partition group.

Parameters:
describeHapgRequest Container for the necessary parameters to execute the DescribeHapg operation on AWSCloudHSM.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DescribeHapg service method, as returned by AWSCloudHSM.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSCloudHSM indicating either a problem with the data in the request, or a server side issue.
 
             final DescribeHapgRequest describeHapgRequest,
             final AsyncHandler<DescribeHapgRequestDescribeHapgResultasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<DescribeHapgResult>() {
             public DescribeHapgResult call() throws Exception {
               DescribeHapgResult result;
                 try {
                 result = describeHapg(describeHapgRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(describeHapgRequestresult);
                  return result;
         }
     });
     }
    
    

Lists the Availability Zones that have available AWS CloudHSM capacity.

Parameters:
listAvailableZonesRequest Container for the necessary parameters to execute the ListAvailableZones operation on AWSCloudHSM.
Returns:
A Java Future object containing the response from the ListAvailableZones service method, as returned by AWSCloudHSM.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSCloudHSM indicating either a problem with the data in the request, or a server side issue.
 
     public Future<ListAvailableZonesResultlistAvailableZonesAsync(final ListAvailableZonesRequest listAvailableZonesRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<ListAvailableZonesResult>() {
             public ListAvailableZonesResult call() throws Exception {
                 return listAvailableZones(listAvailableZonesRequest);
         }
     });
     }

    

Lists the Availability Zones that have available AWS CloudHSM capacity.

Parameters:
listAvailableZonesRequest Container for the necessary parameters to execute the ListAvailableZones operation on AWSCloudHSM.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the ListAvailableZones service method, as returned by AWSCloudHSM.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSCloudHSM indicating either a problem with the data in the request, or a server side issue.
 
             final ListAvailableZonesRequest listAvailableZonesRequest,
             final AsyncHandler<ListAvailableZonesRequestListAvailableZonesResultasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<ListAvailableZonesResult>() {
             public ListAvailableZonesResult call() throws Exception {
               ListAvailableZonesResult result;
                 try {
                 result = listAvailableZones(listAvailableZonesRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(listAvailableZonesRequestresult);
                  return result;
         }
     });
     }
    
    

Modifies an HSM.

Parameters:
modifyHsmRequest Container for the necessary parameters to execute the ModifyHsm operation on AWSCloudHSM.
Returns:
A Java Future object containing the response from the ModifyHsm service method, as returned by AWSCloudHSM.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSCloudHSM indicating either a problem with the data in the request, or a server side issue.
 
     public Future<ModifyHsmResultmodifyHsmAsync(final ModifyHsmRequest modifyHsmRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<ModifyHsmResult>() {
             public ModifyHsmResult call() throws Exception {
                 return modifyHsm(modifyHsmRequest);
         }
     });
     }

    

Modifies an HSM.

Parameters:
modifyHsmRequest Container for the necessary parameters to execute the ModifyHsm operation on AWSCloudHSM.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the ModifyHsm service method, as returned by AWSCloudHSM.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSCloudHSM indicating either a problem with the data in the request, or a server side issue.
 
             final ModifyHsmRequest modifyHsmRequest,
             final AsyncHandler<ModifyHsmRequestModifyHsmResultasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<ModifyHsmResult>() {
             public ModifyHsmResult call() throws Exception {
               ModifyHsmResult result;
                 try {
                 result = modifyHsm(modifyHsmRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(modifyHsmRequestresult);
                  return result;
         }
     });
     }
    
    

Lists all of the clients.

This operation supports pagination with the use of the NextToken member. If more results are available, the NextToken member of the response contains a token that you pass in the next call to ListLunaClients to retrieve the next set of items.

Parameters:
listLunaClientsRequest Container for the necessary parameters to execute the ListLunaClients operation on AWSCloudHSM.
Returns:
A Java Future object containing the response from the ListLunaClients service method, as returned by AWSCloudHSM.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSCloudHSM indicating either a problem with the data in the request, or a server side issue.
 
     public Future<ListLunaClientsResultlistLunaClientsAsync(final ListLunaClientsRequest listLunaClientsRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<ListLunaClientsResult>() {
             public ListLunaClientsResult call() throws Exception {
                 return listLunaClients(listLunaClientsRequest);
         }
     });
     }

    

Lists all of the clients.

This operation supports pagination with the use of the NextToken member. If more results are available, the NextToken member of the response contains a token that you pass in the next call to ListLunaClients to retrieve the next set of items.

Parameters:
listLunaClientsRequest Container for the necessary parameters to execute the ListLunaClients operation on AWSCloudHSM.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the ListLunaClients service method, as returned by AWSCloudHSM.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSCloudHSM indicating either a problem with the data in the request, or a server side issue.
 
             final ListLunaClientsRequest listLunaClientsRequest,
             final AsyncHandler<ListLunaClientsRequestListLunaClientsResultasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<ListLunaClientsResult>() {
             public ListLunaClientsResult call() throws Exception {
               ListLunaClientsResult result;
                 try {
                 result = listLunaClients(listLunaClientsRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(listLunaClientsRequestresult);
                  return result;
         }
     });
     }
    
    

Lists the high-availability partition groups for the account.

This operation supports pagination with the use of the NextToken member. If more results are available, the NextToken member of the response contains a token that you pass in the next call to ListHapgs to retrieve the next set of items.

Parameters:
listHapgsRequest Container for the necessary parameters to execute the ListHapgs operation on AWSCloudHSM.
Returns:
A Java Future object containing the response from the ListHapgs service method, as returned by AWSCloudHSM.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSCloudHSM indicating either a problem with the data in the request, or a server side issue.
 
     public Future<ListHapgsResultlistHapgsAsync(final ListHapgsRequest listHapgsRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<ListHapgsResult>() {
             public ListHapgsResult call() throws Exception {
                 return listHapgs(listHapgsRequest);
         }
     });
     }

    

Lists the high-availability partition groups for the account.

This operation supports pagination with the use of the NextToken member. If more results are available, the NextToken member of the response contains a token that you pass in the next call to ListHapgs to retrieve the next set of items.

Parameters:
listHapgsRequest Container for the necessary parameters to execute the ListHapgs operation on AWSCloudHSM.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the ListHapgs service method, as returned by AWSCloudHSM.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSCloudHSM indicating either a problem with the data in the request, or a server side issue.
 
             final ListHapgsRequest listHapgsRequest,
             final AsyncHandler<ListHapgsRequestListHapgsResultasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<ListHapgsResult>() {
             public ListHapgsResult call() throws Exception {
               ListHapgsResult result;
                 try {
                 result = listHapgs(listHapgsRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(listHapgsRequestresult);
                  return result;
         }
     });
     }
    
    

Deletes an HSM. Once complete, this operation cannot be undone and your key material cannot be recovered.

Parameters:
deleteHsmRequest Container for the necessary parameters to execute the DeleteHsm operation on AWSCloudHSM.
Returns:
A Java Future object containing the response from the DeleteHsm service method, as returned by AWSCloudHSM.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSCloudHSM indicating either a problem with the data in the request, or a server side issue.
 
     public Future<DeleteHsmResultdeleteHsmAsync(final DeleteHsmRequest deleteHsmRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<DeleteHsmResult>() {
             public DeleteHsmResult call() throws Exception {
                 return deleteHsm(deleteHsmRequest);
         }
     });
     }

    

Deletes an HSM. Once complete, this operation cannot be undone and your key material cannot be recovered.

Parameters:
deleteHsmRequest Container for the necessary parameters to execute the DeleteHsm operation on AWSCloudHSM.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DeleteHsm service method, as returned by AWSCloudHSM.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSCloudHSM indicating either a problem with the data in the request, or a server side issue.
 
             final DeleteHsmRequest deleteHsmRequest,
             final AsyncHandler<DeleteHsmRequestDeleteHsmResultasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<DeleteHsmResult>() {
             public DeleteHsmResult call() throws Exception {
               DeleteHsmResult result;
                 try {
                 result = deleteHsm(deleteHsmRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(deleteHsmRequestresult);
                  return result;
         }
     });
     }
    
    

Creates an uninitialized HSM instance. Running this command provisions an HSM appliance and will result in charges to your AWS account for the HSM.

Parameters:
createHsmRequest Container for the necessary parameters to execute the CreateHsm operation on AWSCloudHSM.
Returns:
A Java Future object containing the response from the CreateHsm service method, as returned by AWSCloudHSM.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSCloudHSM indicating either a problem with the data in the request, or a server side issue.
 
     public Future<CreateHsmResultcreateHsmAsync(final CreateHsmRequest createHsmRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<CreateHsmResult>() {
             public CreateHsmResult call() throws Exception {
                 return createHsm(createHsmRequest);
         }
     });
     }

    

Creates an uninitialized HSM instance. Running this command provisions an HSM appliance and will result in charges to your AWS account for the HSM.

Parameters:
createHsmRequest Container for the necessary parameters to execute the CreateHsm operation on AWSCloudHSM.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the CreateHsm service method, as returned by AWSCloudHSM.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSCloudHSM indicating either a problem with the data in the request, or a server side issue.
 
             final CreateHsmRequest createHsmRequest,
             final AsyncHandler<CreateHsmRequestCreateHsmResultasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<CreateHsmResult>() {
             public CreateHsmResult call() throws Exception {
               CreateHsmResult result;
                 try {
                 result = createHsm(createHsmRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(createHsmRequestresult);
                  return result;
         }
     });
     }
    
    

Retrieves the identifiers of all of the HSMs provisioned for the current customer.

This operation supports pagination with the use of the NextToken member. If more results are available, the NextToken member of the response contains a token that you pass in the next call to ListHsms to retrieve the next set of items.

Parameters:
listHsmsRequest Container for the necessary parameters to execute the ListHsms operation on AWSCloudHSM.
Returns:
A Java Future object containing the response from the ListHsms service method, as returned by AWSCloudHSM.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSCloudHSM indicating either a problem with the data in the request, or a server side issue.
 
     public Future<ListHsmsResultlistHsmsAsync(final ListHsmsRequest listHsmsRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<ListHsmsResult>() {
             public ListHsmsResult call() throws Exception {
                 return listHsms(listHsmsRequest);
         }
     });
     }

    

Retrieves the identifiers of all of the HSMs provisioned for the current customer.

This operation supports pagination with the use of the NextToken member. If more results are available, the NextToken member of the response contains a token that you pass in the next call to ListHsms to retrieve the next set of items.

Parameters:
listHsmsRequest Container for the necessary parameters to execute the ListHsms operation on AWSCloudHSM.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the ListHsms service method, as returned by AWSCloudHSM.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSCloudHSM indicating either a problem with the data in the request, or a server side issue.
            final ListHsmsRequest listHsmsRequest,
            final AsyncHandler<ListHsmsRequestListHsmsResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<ListHsmsResult>() {
            public ListHsmsResult call() throws Exception {
              ListHsmsResult result;
                try {
                result = listHsms(listHsmsRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(listHsmsRequestresult);
                 return result;
        }
    });
    }
    
    

Retrieves information about an HSM. You can identify the HSM by its ARN or its serial number.

Parameters:
describeHsmRequest Container for the necessary parameters to execute the DescribeHsm operation on AWSCloudHSM.
Returns:
A Java Future object containing the response from the DescribeHsm service method, as returned by AWSCloudHSM.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSCloudHSM indicating either a problem with the data in the request, or a server side issue.
    public Future<DescribeHsmResultdescribeHsmAsync(final DescribeHsmRequest describeHsmRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<DescribeHsmResult>() {
            public DescribeHsmResult call() throws Exception {
                return describeHsm(describeHsmRequest);
        }
    });
    }

    

Retrieves information about an HSM. You can identify the HSM by its ARN or its serial number.

Parameters:
describeHsmRequest Container for the necessary parameters to execute the DescribeHsm operation on AWSCloudHSM.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DescribeHsm service method, as returned by AWSCloudHSM.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSCloudHSM indicating either a problem with the data in the request, or a server side issue.
            final DescribeHsmRequest describeHsmRequest,
            final AsyncHandler<DescribeHsmRequestDescribeHsmResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<DescribeHsmResult>() {
            public DescribeHsmResult call() throws Exception {
              DescribeHsmResult result;
                try {
                result = describeHsm(describeHsmRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(describeHsmRequestresult);
                 return result;
        }
    });
    }
    
    

Deletes a high-availability partition group.

Parameters:
deleteHapgRequest Container for the necessary parameters to execute the DeleteHapg operation on AWSCloudHSM.
Returns:
A Java Future object containing the response from the DeleteHapg service method, as returned by AWSCloudHSM.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSCloudHSM indicating either a problem with the data in the request, or a server side issue.
    public Future<DeleteHapgResultdeleteHapgAsync(final DeleteHapgRequest deleteHapgRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<DeleteHapgResult>() {
            public DeleteHapgResult call() throws Exception {
                return deleteHapg(deleteHapgRequest);
        }
    });
    }

    

Deletes a high-availability partition group.

Parameters:
deleteHapgRequest Container for the necessary parameters to execute the DeleteHapg operation on AWSCloudHSM.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DeleteHapg service method, as returned by AWSCloudHSM.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSCloudHSM indicating either a problem with the data in the request, or a server side issue.
            final DeleteHapgRequest deleteHapgRequest,
            final AsyncHandler<DeleteHapgRequestDeleteHapgResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<DeleteHapgResult>() {
            public DeleteHapgResult call() throws Exception {
              DeleteHapgResult result;
                try {
                result = deleteHapg(deleteHapgRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(deleteHapgRequestresult);
                 return result;
        }
    });
    }
    
    

Modifies an existing high-availability partition group.

Parameters:
modifyHapgRequest Container for the necessary parameters to execute the ModifyHapg operation on AWSCloudHSM.
Returns:
A Java Future object containing the response from the ModifyHapg service method, as returned by AWSCloudHSM.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSCloudHSM indicating either a problem with the data in the request, or a server side issue.
    public Future<ModifyHapgResultmodifyHapgAsync(final ModifyHapgRequest modifyHapgRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<ModifyHapgResult>() {
            public ModifyHapgResult call() throws Exception {
                return modifyHapg(modifyHapgRequest);
        }
    });
    }

    

Modifies an existing high-availability partition group.

Parameters:
modifyHapgRequest Container for the necessary parameters to execute the ModifyHapg operation on AWSCloudHSM.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the ModifyHapg service method, as returned by AWSCloudHSM.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSCloudHSM indicating either a problem with the data in the request, or a server side issue.
            final ModifyHapgRequest modifyHapgRequest,
            final AsyncHandler<ModifyHapgRequestModifyHapgResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<ModifyHapgResult>() {
            public ModifyHapgResult call() throws Exception {
              ModifyHapgResult result;
                try {
                result = modifyHapg(modifyHapgRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(modifyHapgRequestresult);
                 return result;
        }
    });
    }
    
    

Creates an HSM client.

Parameters:
createLunaClientRequest Container for the necessary parameters to execute the CreateLunaClient operation on AWSCloudHSM.
Returns:
A Java Future object containing the response from the CreateLunaClient service method, as returned by AWSCloudHSM.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSCloudHSM indicating either a problem with the data in the request, or a server side issue.
    public Future<CreateLunaClientResultcreateLunaClientAsync(final CreateLunaClientRequest createLunaClientRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<CreateLunaClientResult>() {
            public CreateLunaClientResult call() throws Exception {
                return createLunaClient(createLunaClientRequest);
        }
    });
    }

    

Creates an HSM client.

Parameters:
createLunaClientRequest Container for the necessary parameters to execute the CreateLunaClient operation on AWSCloudHSM.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the CreateLunaClient service method, as returned by AWSCloudHSM.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSCloudHSM indicating either a problem with the data in the request, or a server side issue.
            final CreateLunaClientRequest createLunaClientRequest,
            final AsyncHandler<CreateLunaClientRequestCreateLunaClientResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<CreateLunaClientResult>() {
            public CreateLunaClientResult call() throws Exception {
              CreateLunaClientResult result;
                try {
                result = createLunaClient(createLunaClientRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(createLunaClientRequestresult);
                 return result;
        }
    });
    }
    
    

Deletes a client.

Parameters:
deleteLunaClientRequest Container for the necessary parameters to execute the DeleteLunaClient operation on AWSCloudHSM.
Returns:
A Java Future object containing the response from the DeleteLunaClient service method, as returned by AWSCloudHSM.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSCloudHSM indicating either a problem with the data in the request, or a server side issue.
    public Future<DeleteLunaClientResultdeleteLunaClientAsync(final DeleteLunaClientRequest deleteLunaClientRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<DeleteLunaClientResult>() {
            public DeleteLunaClientResult call() throws Exception {
                return deleteLunaClient(deleteLunaClientRequest);
        }
    });
    }

    

Deletes a client.

Parameters:
deleteLunaClientRequest Container for the necessary parameters to execute the DeleteLunaClient operation on AWSCloudHSM.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DeleteLunaClient service method, as returned by AWSCloudHSM.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSCloudHSM indicating either a problem with the data in the request, or a server side issue.
            final DeleteLunaClientRequest deleteLunaClientRequest,
            final AsyncHandler<DeleteLunaClientRequestDeleteLunaClientResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<DeleteLunaClientResult>() {
            public DeleteLunaClientResult call() throws Exception {
              DeleteLunaClientResult result;
                try {
                result = deleteLunaClient(deleteLunaClientRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(deleteLunaClientRequestresult);
                 return result;
        }
    });
    }
    
    

Modifies the certificate used by the client.

This action can potentially start a workflow to install the new certificate on the client's HSMs.

Parameters:
modifyLunaClientRequest Container for the necessary parameters to execute the ModifyLunaClient operation on AWSCloudHSM.
Returns:
A Java Future object containing the response from the ModifyLunaClient service method, as returned by AWSCloudHSM.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSCloudHSM indicating either a problem with the data in the request, or a server side issue.
    public Future<ModifyLunaClientResultmodifyLunaClientAsync(final ModifyLunaClientRequest modifyLunaClientRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<ModifyLunaClientResult>() {
            public ModifyLunaClientResult call() throws Exception {
                return modifyLunaClient(modifyLunaClientRequest);
        }
    });
    }

    

Modifies the certificate used by the client.

This action can potentially start a workflow to install the new certificate on the client's HSMs.

Parameters:
modifyLunaClientRequest Container for the necessary parameters to execute the ModifyLunaClient operation on AWSCloudHSM.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the ModifyLunaClient service method, as returned by AWSCloudHSM.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSCloudHSM indicating either a problem with the data in the request, or a server side issue.
            final ModifyLunaClientRequest modifyLunaClientRequest,
            final AsyncHandler<ModifyLunaClientRequestModifyLunaClientResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<ModifyLunaClientResult>() {
            public ModifyLunaClientResult call() throws Exception {
              ModifyLunaClientResult result;
                try {
                result = modifyLunaClient(modifyLunaClientRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(modifyLunaClientRequestresult);
                 return result;
        }
    });
    }
    
    

Retrieves information about an HSM client.

Parameters:
describeLunaClientRequest Container for the necessary parameters to execute the DescribeLunaClient operation on AWSCloudHSM.
Returns:
A Java Future object containing the response from the DescribeLunaClient service method, as returned by AWSCloudHSM.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSCloudHSM indicating either a problem with the data in the request, or a server side issue.
    public Future<DescribeLunaClientResultdescribeLunaClientAsync(final DescribeLunaClientRequest describeLunaClientRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<DescribeLunaClientResult>() {
            public DescribeLunaClientResult call() throws Exception {
                return describeLunaClient(describeLunaClientRequest);
        }
    });
    }

    

Retrieves information about an HSM client.

Parameters:
describeLunaClientRequest Container for the necessary parameters to execute the DescribeLunaClient operation on AWSCloudHSM.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DescribeLunaClient service method, as returned by AWSCloudHSM.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AWSCloudHSM indicating either a problem with the data in the request, or a server side issue.
            final DescribeLunaClientRequest describeLunaClientRequest,
            final AsyncHandler<DescribeLunaClientRequestDescribeLunaClientResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<DescribeLunaClientResult>() {
            public DescribeLunaClientResult call() throws Exception {
              DescribeLunaClientResult result;
                try {
                result = describeLunaClient(describeLunaClientRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(describeLunaClientRequestresult);
                 return result;
        }
    });
    }
    
}
        
New to GrepCode? Check out our FAQ X