Example usage for com.amazonaws.services.cognitoidp AWSCognitoIdentityProviderClient AWSCognitoIdentityProviderClient

List of usage examples for com.amazonaws.services.cognitoidp AWSCognitoIdentityProviderClient AWSCognitoIdentityProviderClient

Introduction

In this page you can find the example usage for com.amazonaws.services.cognitoidp AWSCognitoIdentityProviderClient AWSCognitoIdentityProviderClient.

Prototype

AWSCognitoIdentityProviderClient(AwsSyncClientParams clientParams, boolean endpointDiscoveryEnabled) 

Source Link

Document

Constructs a new client to invoke service methods on Amazon Cognito Identity Provider using the specified parameters.

Usage

From source file:io.fineo.client.auth.cognito.CognitoUserPool.java

License:Open Source License

/**
 * Constructs a user-pool with default {@link ClientConfiguration}.
 *
 * @param userPoolId            REQUIRED: User-pool-Id of the user-pool.
 * @param clientId              REQUIRED: Client-Id generated for this app and user-pool at the
 *                              Cognito Identity Provider developer console.
 * @param clientSecret          REQUIRED: Client Secret generated for this app and user-pool at
 *                              the Cognito Identity Provider developer console.
 *//*from w  w w .  ja  va 2  s.c om*/
public CognitoUserPool(String userPoolId, String clientId, String clientSecret) {
    this.userPoolId = userPoolId;
    this.clientId = clientId;
    this.clientSecret = clientSecret;
    this.client = new AWSCognitoIdentityProviderClient(new AnonymousAWSCredentials(),
            new ClientConfiguration());
}