com.amazonaws.auth
Class AWSEnhancedCognitoIdentityProvider

java.lang.Object
  extended by com.amazonaws.auth.AWSAbstractCognitoIdentityProvider
      extended by com.amazonaws.auth.AWSEnhancedCognitoIdentityProvider
All Implemented Interfaces:
AWSCognitoIdentityProvider, AWSIdentityProvider

public final class AWSEnhancedCognitoIdentityProvider
extends AWSAbstractCognitoIdentityProvider

An extension of the AbstractCognitoProvider that is used to communicate with Cognito when using the enhanced authentication flow. All other functionality is the same as that of AbstractCognitoIdentityProvider.


Constructor Summary
AWSEnhancedCognitoIdentityProvider(java.lang.String accountId, java.lang.String identityPoolId)
          An extension of the AbstractCognitoProvider that is used to communicate with Cognito.
AWSEnhancedCognitoIdentityProvider(java.lang.String accountId, java.lang.String identityPoolId, AmazonCognitoIdentity cibClient)
          An extension of the AbstractCognitoProvider that is used to communicate with Cognito.
AWSEnhancedCognitoIdentityProvider(java.lang.String accountId, java.lang.String identityPoolId, ClientConfiguration clientConfiguration)
          An extension of the AbstractCognitoProvider that is used to communicate with Cognito.
 
Method Summary
 java.lang.String getProviderName()
          Gets a string with the name of the provider being used.
 java.lang.String refresh()
          To be used to call the provider back end to get a token and identityId.
 
Methods inherited from class com.amazonaws.auth.AWSAbstractCognitoIdentityProvider
clearListeners, getAccountId, getIdentityId, getIdentityPoolId, getLogins, getToken, identityChanged, isAuthenticated, registerIdentityChangedListener, setLogins, unregisterIdentityChangedListener
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AWSEnhancedCognitoIdentityProvider

public AWSEnhancedCognitoIdentityProvider(java.lang.String accountId,
                                          java.lang.String identityPoolId)
An extension of the AbstractCognitoProvider that is used to communicate with Cognito.

Parameters:
accountId - the account id of the developer
identityPoolId - the identity pool id of the app/user in question

AWSEnhancedCognitoIdentityProvider

public AWSEnhancedCognitoIdentityProvider(java.lang.String accountId,
                                          java.lang.String identityPoolId,
                                          ClientConfiguration clientConfiguration)
An extension of the AbstractCognitoProvider that is used to communicate with Cognito.

Parameters:
accountId - the account id of the developer
identityPoolId - the identity pool id of the app/user in question
clientConfiguration - the configuration to apply to service clients created

AWSEnhancedCognitoIdentityProvider

public AWSEnhancedCognitoIdentityProvider(java.lang.String accountId,
                                          java.lang.String identityPoolId,
                                          AmazonCognitoIdentity cibClient)
An extension of the AbstractCognitoProvider that is used to communicate with Cognito.

Parameters:
accountId - the account id of the developer
identityPoolId - the identity pool id of the app/user in question
cibClient - the cib client which will be used to contact the cib back end
Method Detail

getProviderName

public java.lang.String getProviderName()
Description copied from class: AWSAbstractCognitoIdentityProvider
Gets a string with the name of the provider being used. For example, Cognito would return "Cognito";

Specified by:
getProviderName in class AWSAbstractCognitoIdentityProvider
Returns:
the name of the provider in a string

refresh

public java.lang.String refresh()
Description copied from interface: AWSIdentityProvider
To be used to call the provider back end to get a token and identityId. Once that has returned, a call to the superclass' update(String, Token) method should be called

Specified by:
refresh in interface AWSIdentityProvider
Overrides:
refresh in class AWSAbstractCognitoIdentityProvider
Returns:
token returns the token that was updated in the refresh


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.