com.amazonaws.auth
Interface AWSCognitoIdentityProvider

All Superinterfaces:
AWSIdentityProvider
All Known Implementing Classes:
AWSAbstractCognitoIdentityProvider, AWSBasicCognitoIdentityProvider

public interface AWSCognitoIdentityProvider
extends AWSIdentityProvider

A container of data pertinent to a single provider, and will handle most of the interactions with said provider and the client. This includes some more logic for custom identity providers, but shouldn't be implemented to do so. It is utilized by the AWSAbstractCognitoIdentityProvider, which is what should be extended to do so.


Method Summary
 void clearListeners()
          To be used to empty all registered listeners from the identity provider
 java.util.Map<java.lang.String,java.lang.String> getLogins()
          Get the logins from the provider
 void identityChanged(java.lang.String newIdentity)
          Handles the updating of the identityId locally once it has been changed for one reason or another
 java.lang.String refresh()
          To be used to call the provider back end to get a token and identityId.
 void registerIdentityChangedListener(IdentityChangedListener listener)
          Handles the new version of an identity changed listener to be handled by the provider
 void setLogins(java.util.Map<java.lang.String,java.lang.String> loginsMap)
          Pass the logins to the provider
 void unregisterIdentityChangedListener(IdentityChangedListener listener)
          Handles the removing of a version of an identity changed listener from the list with the provider
 
Methods inherited from interface com.amazonaws.auth.AWSIdentityProvider
getIdentityId, getToken
 

Method Detail

setLogins

void setLogins(java.util.Map<java.lang.String,java.lang.String> loginsMap)
Pass the logins to the provider

Parameters:
loginsMap - the logins map

getLogins

java.util.Map<java.lang.String,java.lang.String> getLogins()
Get the logins from the provider

Returns:
the logins map

registerIdentityChangedListener

void registerIdentityChangedListener(IdentityChangedListener listener)
Handles the new version of an identity changed listener to be handled by the provider

Parameters:
listener - the new listener to be registered

unregisterIdentityChangedListener

void unregisterIdentityChangedListener(IdentityChangedListener listener)
Handles the removing of a version of an identity changed listener from the list with the provider

Parameters:
listener - the listener to be removed

identityChanged

void identityChanged(java.lang.String newIdentity)
Handles the updating of the identityId locally once it has been changed for one reason or another

Parameters:
newIdentity - the new identityId for the user

refresh

java.lang.String refresh()
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

Returns:
token returns the token that was updated in the refresh

clearListeners

void clearListeners()
To be used to empty all registered listeners from the identity provider



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