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.cognitoidentity;
  
  
  
Asynchronous client for accessing AmazonCognitoIdentity. 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. Amazon Cognito

Amazon Cognito is a web service that delivers scoped temporary credentials to mobile devices and other untrusted environments. Amazon Cognito uniquely identifies a device and supplies the user with a consistent identity over the lifetime of an application.

Using Amazon Cognito, you can enable authentication with one or more third-party identity providers (Facebook, Google, or Login with Amazon), and you can also choose to support unauthenticated access from your app. Cognito delivers a unique identifier for each user and acts as an OpenID token provider trusted by AWS Security Token Service (STS) to access temporary, limited-privilege AWS credentials.

To provide end-user credentials, first make an unsigned call to GetId. If the end user is authenticated with one of the supported identity providers, set the Logins map with the identity provider token. GetId returns a unique identifier for the user.

Next, make an unsigned call to GetCredentialsForIdentity. This call expects the same Logins map as the GetId call, as well as the IdentityID originally returned by GetId . Assuming your identity pool has been configured via the SetIdentityPoolRoles operation, GetCredentialsForIdentity will return AWS credentials for your use. If your pool has not been configured with SetIdentityPoolRoles , or if you want to follow legacy flow, make an unsigned call to GetOpenIdToken, which returns the OpenID token necessary to call STS and retrieve AWS credentials. This call expects the same Logins map as the GetId call, as well as the IdentityID originally returned by GetId . The token returned by GetOpenIdToken can be passed to the STS operation AssumeRoleWithWebIdentity to retrieve AWS credentials.

If you want to use Amazon Cognito in an Android, iOS, or Unity application, you will probably want to make API calls via the AWS Mobile SDK. To learn more, see the AWS Mobile SDK Developer Guide .

  
          implements AmazonCognitoIdentityAsync {

    
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 AmazonCognitoIdentity. 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.

 
         this(new DefaultAWSCredentialsProviderChain());
     }

    
Constructs a new asynchronous client to invoke service methods on AmazonCognitoIdentity. 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 AmazonCognitoIdentity (ex: proxy settings, retry counts, etc.).
See also:
com.amazonaws.auth.DefaultAWSCredentialsProviderChain
 
     public AmazonCognitoIdentityAsyncClient(ClientConfiguration clientConfiguration) {
         this(new DefaultAWSCredentialsProviderChain(), clientConfiguration, Executors.newFixedThreadPool(clientConfiguration.getMaxConnections()));
     }

    
Constructs a new asynchronous client to invoke service methods on AmazonCognitoIdentity 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 AmazonCognitoIdentityAsyncClient(AWSCredentials awsCredentials) {
         this(awsCredentials, Executors.newFixedThreadPool());
     }

    
Constructs a new asynchronous client to invoke service methods on AmazonCognitoIdentity 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 AmazonCognitoIdentityAsyncClient(AWSCredentials awsCredentialsExecutorService executorService) {
         super(awsCredentials);
         this. = executorService;
     }

    
Constructs a new asynchronous client to invoke service methods on AmazonCognitoIdentity 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 AmazonCognitoIdentityAsyncClient(AWSCredentials awsCredentials,
                 ClientConfiguration clientConfigurationExecutorService executorService) {
         super(awsCredentialsclientConfiguration);
         this. = executorService;
     }

    
Constructs a new asynchronous client to invoke service methods on AmazonCognitoIdentity 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 AmazonCognitoIdentityAsyncClient(AWSCredentialsProvider awsCredentialsProvider) {
         this(awsCredentialsProvider, Executors.newFixedThreadPool());
     }

    
Constructs a new asynchronous client to invoke service methods on AmazonCognitoIdentity 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 AmazonCognitoIdentityAsyncClient(AWSCredentialsProvider awsCredentialsProviderExecutorService executorService) {
         this(awsCredentialsProvidernew ClientConfiguration(), executorService);
     }

    
Constructs a new asynchronous client to invoke service methods on AmazonCognitoIdentity 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 AmazonCognitoIdentityAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
                 ClientConfiguration clientConfiguration) {
         this(awsCredentialsProviderclientConfiguration, Executors.newFixedThreadPool(clientConfiguration.getMaxConnections()));
     }

    
Constructs a new asynchronous client to invoke service methods on AmazonCognitoIdentity 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 AmazonCognitoIdentityAsyncClient(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();
     }
            
    

Unlinks a DeveloperUserIdentifier from an existing identity. Unlinked developer users will be considered new identities next time they are seen. If, for a given Cognito identity, you remove all federated identities as well as the developer user identifier, the Cognito identity becomes inaccessible.

Parameters:
unlinkDeveloperIdentityRequest Container for the necessary parameters to execute the UnlinkDeveloperIdentity operation on AmazonCognitoIdentity.
Returns:
A Java Future object containing the response from the UnlinkDeveloperIdentity service method, as returned by AmazonCognitoIdentity.
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 AmazonCognitoIdentity indicating either a problem with the data in the request, or a server side issue.
 
     public Future<VoidunlinkDeveloperIdentityAsync(final UnlinkDeveloperIdentityRequest unlinkDeveloperIdentityRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<Void>() {
             public Void call() throws Exception {
                 unlinkDeveloperIdentity(unlinkDeveloperIdentityRequest);
                 return null;
         }
     });
     }

    

Unlinks a DeveloperUserIdentifier from an existing identity. Unlinked developer users will be considered new identities next time they are seen. If, for a given Cognito identity, you remove all federated identities as well as the developer user identifier, the Cognito identity becomes inaccessible.

Parameters:
unlinkDeveloperIdentityRequest Container for the necessary parameters to execute the UnlinkDeveloperIdentity operation on AmazonCognitoIdentity.
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 UnlinkDeveloperIdentity service method, as returned by AmazonCognitoIdentity.
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 AmazonCognitoIdentity indicating either a problem with the data in the request, or a server side issue.
 
             final UnlinkDeveloperIdentityRequest unlinkDeveloperIdentityRequest,
             final AsyncHandler<UnlinkDeveloperIdentityRequestVoidasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<Void>() {
             public Void call() throws Exception {
               try {
                 unlinkDeveloperIdentity(unlinkDeveloperIdentityRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(unlinkDeveloperIdentityRequestnull);
                  return null;
         }
     });
     }
    
    

Gets details about a particular identity pool, including the pool name, ID description, creation date, and current number of users.

Parameters:
describeIdentityPoolRequest Container for the necessary parameters to execute the DescribeIdentityPool operation on AmazonCognitoIdentity.
Returns:
A Java Future object containing the response from the DescribeIdentityPool service method, as returned by AmazonCognitoIdentity.
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 AmazonCognitoIdentity indicating either a problem with the data in the request, or a server side issue.
 
     public Future<DescribeIdentityPoolResultdescribeIdentityPoolAsync(final DescribeIdentityPoolRequest describeIdentityPoolRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<DescribeIdentityPoolResult>() {
             public DescribeIdentityPoolResult call() throws Exception {
                 return describeIdentityPool(describeIdentityPoolRequest);
         }
     });
     }

    

Gets details about a particular identity pool, including the pool name, ID description, creation date, and current number of users.

Parameters:
describeIdentityPoolRequest Container for the necessary parameters to execute the DescribeIdentityPool operation on AmazonCognitoIdentity.
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 DescribeIdentityPool service method, as returned by AmazonCognitoIdentity.
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 AmazonCognitoIdentity indicating either a problem with the data in the request, or a server side issue.
 
             final DescribeIdentityPoolRequest describeIdentityPoolRequest,
             final AsyncHandler<DescribeIdentityPoolRequestDescribeIdentityPoolResultasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<DescribeIdentityPoolResult>() {
             public DescribeIdentityPoolResult call() throws Exception {
               DescribeIdentityPoolResult result;
                 try {
                 result = describeIdentityPool(describeIdentityPoolRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(describeIdentityPoolRequestresult);
                  return result;
         }
     });
     }
    
    

Generates (or retrieves) a Cognito ID. Supplying multiple logins will create an implicit linked account.

Parameters:
getIdRequest Container for the necessary parameters to execute the GetId operation on AmazonCognitoIdentity.
Returns:
A Java Future object containing the response from the GetId service method, as returned by AmazonCognitoIdentity.
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 AmazonCognitoIdentity indicating either a problem with the data in the request, or a server side issue.
 
     public Future<GetIdResultgetIdAsync(final GetIdRequest getIdRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<GetIdResult>() {
             public GetIdResult call() throws Exception {
                 return getId(getIdRequest);
         }
     });
     }

    

Generates (or retrieves) a Cognito ID. Supplying multiple logins will create an implicit linked account.

Parameters:
getIdRequest Container for the necessary parameters to execute the GetId operation on AmazonCognitoIdentity.
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 GetId service method, as returned by AmazonCognitoIdentity.
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 AmazonCognitoIdentity indicating either a problem with the data in the request, or a server side issue.
 
     public Future<GetIdResultgetIdAsync(
             final GetIdRequest getIdRequest,
             final AsyncHandler<GetIdRequestGetIdResultasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<GetIdResult>() {
             public GetIdResult call() throws Exception {
               GetIdResult result;
                 try {
                 result = getId(getIdRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(getIdRequestresult);
                  return result;
         }
     });
     }
    
    

Deletes a user pool. Once a pool is deleted, users will not be able to authenticate with the pool.

Parameters:
deleteIdentityPoolRequest Container for the necessary parameters to execute the DeleteIdentityPool operation on AmazonCognitoIdentity.
Returns:
A Java Future object containing the response from the DeleteIdentityPool service method, as returned by AmazonCognitoIdentity.
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 AmazonCognitoIdentity indicating either a problem with the data in the request, or a server side issue.
 
     public Future<VoiddeleteIdentityPoolAsync(final DeleteIdentityPoolRequest deleteIdentityPoolRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<Void>() {
             public Void call() throws Exception {
                 deleteIdentityPool(deleteIdentityPoolRequest);
                 return null;
         }
     });
     }

    

Deletes a user pool. Once a pool is deleted, users will not be able to authenticate with the pool.

Parameters:
deleteIdentityPoolRequest Container for the necessary parameters to execute the DeleteIdentityPool operation on AmazonCognitoIdentity.
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 DeleteIdentityPool service method, as returned by AmazonCognitoIdentity.
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 AmazonCognitoIdentity indicating either a problem with the data in the request, or a server side issue.
 
             final DeleteIdentityPoolRequest deleteIdentityPoolRequest,
             final AsyncHandler<DeleteIdentityPoolRequestVoidasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<Void>() {
             public Void call() throws Exception {
               try {
                 deleteIdentityPool(deleteIdentityPoolRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(deleteIdentityPoolRequestnull);
                  return null;
         }
     });
     }
    
    

Updates a user pool.

Parameters:
updateIdentityPoolRequest Container for the necessary parameters to execute the UpdateIdentityPool operation on AmazonCognitoIdentity.
Returns:
A Java Future object containing the response from the UpdateIdentityPool service method, as returned by AmazonCognitoIdentity.
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 AmazonCognitoIdentity indicating either a problem with the data in the request, or a server side issue.
 
     public Future<UpdateIdentityPoolResultupdateIdentityPoolAsync(final UpdateIdentityPoolRequest updateIdentityPoolRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<UpdateIdentityPoolResult>() {
             public UpdateIdentityPoolResult call() throws Exception {
                 return updateIdentityPool(updateIdentityPoolRequest);
         }
     });
     }

    

Updates a user pool.

Parameters:
updateIdentityPoolRequest Container for the necessary parameters to execute the UpdateIdentityPool operation on AmazonCognitoIdentity.
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 UpdateIdentityPool service method, as returned by AmazonCognitoIdentity.
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 AmazonCognitoIdentity indicating either a problem with the data in the request, or a server side issue.
 
             final UpdateIdentityPoolRequest updateIdentityPoolRequest,
             final AsyncHandler<UpdateIdentityPoolRequestUpdateIdentityPoolResultasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<UpdateIdentityPoolResult>() {
             public UpdateIdentityPoolResult call() throws Exception {
               UpdateIdentityPoolResult result;
                 try {
                 result = updateIdentityPool(updateIdentityPoolRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(updateIdentityPoolRequestresult);
                  return result;
         }
     });
     }
    
    

Returns credentials for the the provided identity ID. Any provided logins will be validated against supported login providers. If the token is for cognito-identity.amazonaws.com, it will be passed through to AWS Security Token Service with the appropriate role for the token.

Parameters:
getCredentialsForIdentityRequest Container for the necessary parameters to execute the GetCredentialsForIdentity operation on AmazonCognitoIdentity.
Returns:
A Java Future object containing the response from the GetCredentialsForIdentity service method, as returned by AmazonCognitoIdentity.
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 AmazonCognitoIdentity indicating either a problem with the data in the request, or a server side issue.
 
             throws AmazonServiceExceptionAmazonClientException {
             public GetCredentialsForIdentityResult call() throws Exception {
                 return getCredentialsForIdentity(getCredentialsForIdentityRequest);
         }
     });
     }

    

Returns credentials for the the provided identity ID. Any provided logins will be validated against supported login providers. If the token is for cognito-identity.amazonaws.com, it will be passed through to AWS Security Token Service with the appropriate role for the token.

Parameters:
getCredentialsForIdentityRequest Container for the necessary parameters to execute the GetCredentialsForIdentity operation on AmazonCognitoIdentity.
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 GetCredentialsForIdentity service method, as returned by AmazonCognitoIdentity.
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 AmazonCognitoIdentity indicating either a problem with the data in the request, or a server side issue.
 
             final GetCredentialsForIdentityRequest getCredentialsForIdentityRequest,
             final AsyncHandler<GetCredentialsForIdentityRequestGetCredentialsForIdentityResultasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
             public GetCredentialsForIdentityResult call() throws Exception {
               GetCredentialsForIdentityResult result;
                 try {
                 result = getCredentialsForIdentity(getCredentialsForIdentityRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(getCredentialsForIdentityRequestresult);
                  return result;
         }
     });
     }
    
    

Merges two users having different IdentityId s, existing in the same identity pool, and identified by the same developer provider. You can use this action to request that discrete users be merged and identified as a single user in the Cognito environment. Cognito associates the given source user ( SourceUserIdentifier ) with the IdentityId of the DestinationUserIdentifier . Only developer-authenticated users can be merged. If the users to be merged are associated with the same public provider, but as two different users, an exception will be thrown.

Parameters:
mergeDeveloperIdentitiesRequest Container for the necessary parameters to execute the MergeDeveloperIdentities operation on AmazonCognitoIdentity.
Returns:
A Java Future object containing the response from the MergeDeveloperIdentities service method, as returned by AmazonCognitoIdentity.
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 AmazonCognitoIdentity indicating either a problem with the data in the request, or a server side issue.
 
     public Future<MergeDeveloperIdentitiesResultmergeDeveloperIdentitiesAsync(final MergeDeveloperIdentitiesRequest mergeDeveloperIdentitiesRequest
             throws AmazonServiceExceptionAmazonClientException {
             public MergeDeveloperIdentitiesResult call() throws Exception {
                 return mergeDeveloperIdentities(mergeDeveloperIdentitiesRequest);
         }
     });
     }

    

Merges two users having different IdentityId s, existing in the same identity pool, and identified by the same developer provider. You can use this action to request that discrete users be merged and identified as a single user in the Cognito environment. Cognito associates the given source user ( SourceUserIdentifier ) with the IdentityId of the DestinationUserIdentifier . Only developer-authenticated users can be merged. If the users to be merged are associated with the same public provider, but as two different users, an exception will be thrown.

Parameters:
mergeDeveloperIdentitiesRequest Container for the necessary parameters to execute the MergeDeveloperIdentities operation on AmazonCognitoIdentity.
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 MergeDeveloperIdentities service method, as returned by AmazonCognitoIdentity.
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 AmazonCognitoIdentity indicating either a problem with the data in the request, or a server side issue.
 
             final MergeDeveloperIdentitiesRequest mergeDeveloperIdentitiesRequest,
             final AsyncHandler<MergeDeveloperIdentitiesRequestMergeDeveloperIdentitiesResultasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
             public MergeDeveloperIdentitiesResult call() throws Exception {
               MergeDeveloperIdentitiesResult result;
                 try {
                 result = mergeDeveloperIdentities(mergeDeveloperIdentitiesRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(mergeDeveloperIdentitiesRequestresult);
                  return result;
         }
     });
     }
    
    

Lists all of the Cognito identity pools registered for your account.

Parameters:
listIdentityPoolsRequest Container for the necessary parameters to execute the ListIdentityPools operation on AmazonCognitoIdentity.
Returns:
A Java Future object containing the response from the ListIdentityPools service method, as returned by AmazonCognitoIdentity.
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 AmazonCognitoIdentity indicating either a problem with the data in the request, or a server side issue.
 
     public Future<ListIdentityPoolsResultlistIdentityPoolsAsync(final ListIdentityPoolsRequest listIdentityPoolsRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<ListIdentityPoolsResult>() {
             public ListIdentityPoolsResult call() throws Exception {
                 return listIdentityPools(listIdentityPoolsRequest);
         }
     });
     }

    

Lists all of the Cognito identity pools registered for your account.

Parameters:
listIdentityPoolsRequest Container for the necessary parameters to execute the ListIdentityPools operation on AmazonCognitoIdentity.
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 ListIdentityPools service method, as returned by AmazonCognitoIdentity.
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 AmazonCognitoIdentity indicating either a problem with the data in the request, or a server side issue.
 
             final ListIdentityPoolsRequest listIdentityPoolsRequest,
             final AsyncHandler<ListIdentityPoolsRequestListIdentityPoolsResultasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<ListIdentityPoolsResult>() {
             public ListIdentityPoolsResult call() throws Exception {
               ListIdentityPoolsResult result;
                 try {
                 result = listIdentityPools(listIdentityPoolsRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(listIdentityPoolsRequestresult);
                  return result;
         }
     });
     }
    
    

Gets an OpenID token, using a known Cognito ID. This known Cognito ID is returned by GetId. You can optionally add additional logins for the identity. Supplying multiple logins creates an implicit link.

The OpenId token is valid for 15 minutes.

Parameters:
getOpenIdTokenRequest Container for the necessary parameters to execute the GetOpenIdToken operation on AmazonCognitoIdentity.
Returns:
A Java Future object containing the response from the GetOpenIdToken service method, as returned by AmazonCognitoIdentity.
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 AmazonCognitoIdentity indicating either a problem with the data in the request, or a server side issue.
 
     public Future<GetOpenIdTokenResultgetOpenIdTokenAsync(final GetOpenIdTokenRequest getOpenIdTokenRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<GetOpenIdTokenResult>() {
             public GetOpenIdTokenResult call() throws Exception {
                 return getOpenIdToken(getOpenIdTokenRequest);
         }
     });
     }

    

Gets an OpenID token, using a known Cognito ID. This known Cognito ID is returned by GetId. You can optionally add additional logins for the identity. Supplying multiple logins creates an implicit link.

The OpenId token is valid for 15 minutes.

Parameters:
getOpenIdTokenRequest Container for the necessary parameters to execute the GetOpenIdToken operation on AmazonCognitoIdentity.
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 GetOpenIdToken service method, as returned by AmazonCognitoIdentity.
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 AmazonCognitoIdentity indicating either a problem with the data in the request, or a server side issue.
            final GetOpenIdTokenRequest getOpenIdTokenRequest,
            final AsyncHandler<GetOpenIdTokenRequestGetOpenIdTokenResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<GetOpenIdTokenResult>() {
            public GetOpenIdTokenResult call() throws Exception {
              GetOpenIdTokenResult result;
                try {
                result = getOpenIdToken(getOpenIdTokenRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(getOpenIdTokenRequestresult);
                 return result;
        }
    });
    }
    
    

Returns metadata related to the given identity, including when the identity was created and any associated linked logins.

Parameters:
describeIdentityRequest Container for the necessary parameters to execute the DescribeIdentity operation on AmazonCognitoIdentity.
Returns:
A Java Future object containing the response from the DescribeIdentity service method, as returned by AmazonCognitoIdentity.
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 AmazonCognitoIdentity indicating either a problem with the data in the request, or a server side issue.
    public Future<DescribeIdentityResultdescribeIdentityAsync(final DescribeIdentityRequest describeIdentityRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<DescribeIdentityResult>() {
            public DescribeIdentityResult call() throws Exception {
                return describeIdentity(describeIdentityRequest);
        }
    });
    }

    

Returns metadata related to the given identity, including when the identity was created and any associated linked logins.

Parameters:
describeIdentityRequest Container for the necessary parameters to execute the DescribeIdentity operation on AmazonCognitoIdentity.
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 DescribeIdentity service method, as returned by AmazonCognitoIdentity.
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 AmazonCognitoIdentity indicating either a problem with the data in the request, or a server side issue.
            final DescribeIdentityRequest describeIdentityRequest,
            final AsyncHandler<DescribeIdentityRequestDescribeIdentityResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<DescribeIdentityResult>() {
            public DescribeIdentityResult call() throws Exception {
              DescribeIdentityResult result;
                try {
                result = describeIdentity(describeIdentityRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(describeIdentityRequestresult);
                 return result;
        }
    });
    }
    
    

Retrieves the IdentityID associated with a DeveloperUserIdentifier or the list of DeveloperUserIdentifier s associated with an IdentityId for an existing identity. Either IdentityID or DeveloperUserIdentifier must not be null. If you supply only one of these values, the other value will be searched in the database and returned as a part of the response. If you supply both, DeveloperUserIdentifier will be matched against IdentityID . If the values are verified against the database, the response returns both values and is the same as the request. Otherwise a ResourceConflictException is thrown.

Parameters:
lookupDeveloperIdentityRequest Container for the necessary parameters to execute the LookupDeveloperIdentity operation on AmazonCognitoIdentity.
Returns:
A Java Future object containing the response from the LookupDeveloperIdentity service method, as returned by AmazonCognitoIdentity.
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 AmazonCognitoIdentity indicating either a problem with the data in the request, or a server side issue.
            throws AmazonServiceExceptionAmazonClientException {
            public LookupDeveloperIdentityResult call() throws Exception {
                return lookupDeveloperIdentity(lookupDeveloperIdentityRequest);
        }
    });
    }

    

Retrieves the IdentityID associated with a DeveloperUserIdentifier or the list of DeveloperUserIdentifier s associated with an IdentityId for an existing identity. Either IdentityID or DeveloperUserIdentifier must not be null. If you supply only one of these values, the other value will be searched in the database and returned as a part of the response. If you supply both, DeveloperUserIdentifier will be matched against IdentityID . If the values are verified against the database, the response returns both values and is the same as the request. Otherwise a ResourceConflictException is thrown.

Parameters:
lookupDeveloperIdentityRequest Container for the necessary parameters to execute the LookupDeveloperIdentity operation on AmazonCognitoIdentity.
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 LookupDeveloperIdentity service method, as returned by AmazonCognitoIdentity.
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 AmazonCognitoIdentity indicating either a problem with the data in the request, or a server side issue.
            final LookupDeveloperIdentityRequest lookupDeveloperIdentityRequest,
            final AsyncHandler<LookupDeveloperIdentityRequestLookupDeveloperIdentityResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
            public LookupDeveloperIdentityResult call() throws Exception {
              LookupDeveloperIdentityResult result;
                try {
                result = lookupDeveloperIdentity(lookupDeveloperIdentityRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(lookupDeveloperIdentityRequestresult);
                 return result;
        }
    });
    }
    
    

Sets the roles for an identity pool. These roles are used when making calls to GetCredentialsForIdentity action.

Parameters:
setIdentityPoolRolesRequest Container for the necessary parameters to execute the SetIdentityPoolRoles operation on AmazonCognitoIdentity.
Returns:
A Java Future object containing the response from the SetIdentityPoolRoles service method, as returned by AmazonCognitoIdentity.
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 AmazonCognitoIdentity indicating either a problem with the data in the request, or a server side issue.
    public Future<VoidsetIdentityPoolRolesAsync(final SetIdentityPoolRolesRequest setIdentityPoolRolesRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<Void>() {
            public Void call() throws Exception {
                setIdentityPoolRoles(setIdentityPoolRolesRequest);
                return null;
        }
    });
    }

    

Sets the roles for an identity pool. These roles are used when making calls to GetCredentialsForIdentity action.

Parameters:
setIdentityPoolRolesRequest Container for the necessary parameters to execute the SetIdentityPoolRoles operation on AmazonCognitoIdentity.
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 SetIdentityPoolRoles service method, as returned by AmazonCognitoIdentity.
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 AmazonCognitoIdentity indicating either a problem with the data in the request, or a server side issue.
            final SetIdentityPoolRolesRequest setIdentityPoolRolesRequest,
            final AsyncHandler<SetIdentityPoolRolesRequestVoidasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<Void>() {
            public Void call() throws Exception {
              try {
                setIdentityPoolRoles(setIdentityPoolRolesRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(setIdentityPoolRolesRequestnull);
                 return null;
        }
    });
    }
    
    

Unlinks a federated identity from an existing account. Unlinked logins will be considered new identities next time they are seen. Removing the last linked login will make this identity inaccessible.

Parameters:
unlinkIdentityRequest Container for the necessary parameters to execute the UnlinkIdentity operation on AmazonCognitoIdentity.
Returns:
A Java Future object containing the response from the UnlinkIdentity service method, as returned by AmazonCognitoIdentity.
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 AmazonCognitoIdentity indicating either a problem with the data in the request, or a server side issue.
    public Future<VoidunlinkIdentityAsync(final UnlinkIdentityRequest unlinkIdentityRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<Void>() {
            public Void call() throws Exception {
                unlinkIdentity(unlinkIdentityRequest);
                return null;
        }
    });
    }

    

Unlinks a federated identity from an existing account. Unlinked logins will be considered new identities next time they are seen. Removing the last linked login will make this identity inaccessible.

Parameters:
unlinkIdentityRequest Container for the necessary parameters to execute the UnlinkIdentity operation on AmazonCognitoIdentity.
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 UnlinkIdentity service method, as returned by AmazonCognitoIdentity.
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 AmazonCognitoIdentity indicating either a problem with the data in the request, or a server side issue.
            final UnlinkIdentityRequest unlinkIdentityRequest,
            final AsyncHandler<UnlinkIdentityRequestVoidasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<Void>() {
            public Void call() throws Exception {
              try {
                unlinkIdentity(unlinkIdentityRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(unlinkIdentityRequestnull);
                 return null;
        }
    });
    }
    
    

Lists the identities in a pool.

Parameters:
listIdentitiesRequest Container for the necessary parameters to execute the ListIdentities operation on AmazonCognitoIdentity.
Returns:
A Java Future object containing the response from the ListIdentities service method, as returned by AmazonCognitoIdentity.
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 AmazonCognitoIdentity indicating either a problem with the data in the request, or a server side issue.
    public Future<ListIdentitiesResultlistIdentitiesAsync(final ListIdentitiesRequest listIdentitiesRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<ListIdentitiesResult>() {
            public ListIdentitiesResult call() throws Exception {
                return listIdentities(listIdentitiesRequest);
        }
    });
    }

    

Lists the identities in a pool.

Parameters:
listIdentitiesRequest Container for the necessary parameters to execute the ListIdentities operation on AmazonCognitoIdentity.
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 ListIdentities service method, as returned by AmazonCognitoIdentity.
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 AmazonCognitoIdentity indicating either a problem with the data in the request, or a server side issue.
            final ListIdentitiesRequest listIdentitiesRequest,
            final AsyncHandler<ListIdentitiesRequestListIdentitiesResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<ListIdentitiesResult>() {
            public ListIdentitiesResult call() throws Exception {
              ListIdentitiesResult result;
                try {
                result = listIdentities(listIdentitiesRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(listIdentitiesRequestresult);
                 return result;
        }
    });
    }
    
    

Gets the roles for an identity pool.

Parameters:
getIdentityPoolRolesRequest Container for the necessary parameters to execute the GetIdentityPoolRoles operation on AmazonCognitoIdentity.
Returns:
A Java Future object containing the response from the GetIdentityPoolRoles service method, as returned by AmazonCognitoIdentity.
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 AmazonCognitoIdentity indicating either a problem with the data in the request, or a server side issue.
    public Future<GetIdentityPoolRolesResultgetIdentityPoolRolesAsync(final GetIdentityPoolRolesRequest getIdentityPoolRolesRequest
            throws AmazonServiceExceptionAmazonClientException {
            public GetIdentityPoolRolesResult call() throws Exception {
                return getIdentityPoolRoles(getIdentityPoolRolesRequest);
        }
    });
    }

    

Gets the roles for an identity pool.

Parameters:
getIdentityPoolRolesRequest Container for the necessary parameters to execute the GetIdentityPoolRoles operation on AmazonCognitoIdentity.
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 GetIdentityPoolRoles service method, as returned by AmazonCognitoIdentity.
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 AmazonCognitoIdentity indicating either a problem with the data in the request, or a server side issue.
            final GetIdentityPoolRolesRequest getIdentityPoolRolesRequest,
            final AsyncHandler<GetIdentityPoolRolesRequestGetIdentityPoolRolesResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
            public GetIdentityPoolRolesResult call() throws Exception {
              GetIdentityPoolRolesResult result;
                try {
                result = getIdentityPoolRoles(getIdentityPoolRolesRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(getIdentityPoolRolesRequestresult);
                 return result;
        }
    });
    }
    
    

Registers (or retrieves) a Cognito IdentityId and an OpenID Connect token for a user authenticated by your backend authentication process. Supplying multiple logins will create an implicit linked account. You can only specify one developer provider as part of the Logins map, which is linked to the identity pool. The developer provider is the "domain" by which Cognito will refer to your users.

You can use GetOpenIdTokenForDeveloperIdentity to create a new identity and to link new logins (that is, user credentials issued by a public provider or developer provider) to an existing identity. When you want to create a new identity, the IdentityId should be null. When you want to associate a new login with an existing authenticated/unauthenticated identity, you can do so by providing the existing IdentityId . This API will create the identity in the specified IdentityPoolId .

Parameters:
getOpenIdTokenForDeveloperIdentityRequest Container for the necessary parameters to execute the GetOpenIdTokenForDeveloperIdentity operation on AmazonCognitoIdentity.
Returns:
A Java Future object containing the response from the GetOpenIdTokenForDeveloperIdentity service method, as returned by AmazonCognitoIdentity.
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 AmazonCognitoIdentity indicating either a problem with the data in the request, or a server side issue.
            throws AmazonServiceExceptionAmazonClientException {
            public GetOpenIdTokenForDeveloperIdentityResult call() throws Exception {
                return getOpenIdTokenForDeveloperIdentity(getOpenIdTokenForDeveloperIdentityRequest);
        }
    });
    }

    

Registers (or retrieves) a Cognito IdentityId and an OpenID Connect token for a user authenticated by your backend authentication process. Supplying multiple logins will create an implicit linked account. You can only specify one developer provider as part of the Logins map, which is linked to the identity pool. The developer provider is the "domain" by which Cognito will refer to your users.

You can use GetOpenIdTokenForDeveloperIdentity to create a new identity and to link new logins (that is, user credentials issued by a public provider or developer provider) to an existing identity. When you want to create a new identity, the IdentityId should be null. When you want to associate a new login with an existing authenticated/unauthenticated identity, you can do so by providing the existing IdentityId . This API will create the identity in the specified IdentityPoolId .

Parameters:
getOpenIdTokenForDeveloperIdentityRequest Container for the necessary parameters to execute the GetOpenIdTokenForDeveloperIdentity operation on AmazonCognitoIdentity.
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 GetOpenIdTokenForDeveloperIdentity service method, as returned by AmazonCognitoIdentity.
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 AmazonCognitoIdentity indicating either a problem with the data in the request, or a server side issue.
            final GetOpenIdTokenForDeveloperIdentityRequest getOpenIdTokenForDeveloperIdentityRequest,
                    throws AmazonServiceExceptionAmazonClientException {
            public GetOpenIdTokenForDeveloperIdentityResult call() throws Exception {
              GetOpenIdTokenForDeveloperIdentityResult result;
                try {
                result = getOpenIdTokenForDeveloperIdentity(getOpenIdTokenForDeveloperIdentityRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(getOpenIdTokenForDeveloperIdentityRequestresult);
                 return result;
        }
    });
    }
    
    

Creates a new identity pool. The identity pool is a store of user identity information that is specific to your AWS account. The limit on identity pools is 60 per account.

Parameters:
createIdentityPoolRequest Container for the necessary parameters to execute the CreateIdentityPool operation on AmazonCognitoIdentity.
Returns:
A Java Future object containing the response from the CreateIdentityPool service method, as returned by AmazonCognitoIdentity.
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 AmazonCognitoIdentity indicating either a problem with the data in the request, or a server side issue.
    public Future<CreateIdentityPoolResultcreateIdentityPoolAsync(final CreateIdentityPoolRequest createIdentityPoolRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<CreateIdentityPoolResult>() {
            public CreateIdentityPoolResult call() throws Exception {
                return createIdentityPool(createIdentityPoolRequest);
        }
    });
    }

    

Creates a new identity pool. The identity pool is a store of user identity information that is specific to your AWS account. The limit on identity pools is 60 per account.

Parameters:
createIdentityPoolRequest Container for the necessary parameters to execute the CreateIdentityPool operation on AmazonCognitoIdentity.
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 CreateIdentityPool service method, as returned by AmazonCognitoIdentity.
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 AmazonCognitoIdentity indicating either a problem with the data in the request, or a server side issue.
            final CreateIdentityPoolRequest createIdentityPoolRequest,
            final AsyncHandler<CreateIdentityPoolRequestCreateIdentityPoolResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<CreateIdentityPoolResult>() {
            public CreateIdentityPoolResult call() throws Exception {
              CreateIdentityPoolResult result;
                try {
                result = createIdentityPool(createIdentityPoolRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(createIdentityPoolRequestresult);
                 return result;
        }
    });
    }
    
}
        
New to GrepCode? Check out our FAQ X