|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectcom.amazonaws.auth.AWSAbstractCognitoIdentityProvider
public abstract class AWSAbstractCognitoIdentityProvider
This class serves as a means for some back end code that should be consistent across all identity providers. It handles everything short of getting the identity id and the token, and is what should be extended to create a custom identity provider.
| Constructor Summary | |
|---|---|
AWSAbstractCognitoIdentityProvider(java.lang.String accountId,
java.lang.String identityPoolId)
|
|
| Method Summary | |
|---|---|
void |
clearListeners()
To be used to empty all registered listeners from the identity provider |
java.lang.String |
getAccountId()
|
java.lang.String |
getIdentityId()
Gets the identityId of the user |
java.lang.String |
getIdentityPoolId()
|
java.util.Map<java.lang.String,java.lang.String> |
getLogins()
Get the logins from the provider |
abstract java.lang.String |
getProviderName()
Gets a string with the name of the provider being used. |
java.lang.String |
getToken()
Get the token from the relevant provider |
void |
identityChanged(java.lang.String newIdentityId)
Updates the listeners and establishes the new identityId as the stored 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> logins)
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 class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.amazonaws.auth.AWSCognitoIdentityProvider |
|---|
refresh |
| Constructor Detail |
|---|
public AWSAbstractCognitoIdentityProvider(java.lang.String accountId,
java.lang.String identityPoolId)
| Method Detail |
|---|
public abstract java.lang.String getProviderName()
public java.lang.String getIdentityId()
AWSIdentityProvider
getIdentityId in interface AWSIdentityProviderpublic java.lang.String getToken()
AWSIdentityProvider
getToken in interface AWSIdentityProviderpublic java.lang.String getIdentityPoolId()
public java.lang.String getAccountId()
public java.util.Map<java.lang.String,java.lang.String> getLogins()
AWSCognitoIdentityProvider
getLogins in interface AWSCognitoIdentityProviderpublic void setLogins(java.util.Map<java.lang.String,java.lang.String> logins)
AWSCognitoIdentityProvider
setLogins in interface AWSCognitoIdentityProviderlogins - the logins mappublic void unregisterIdentityChangedListener(IdentityChangedListener listener)
AWSCognitoIdentityProvider
unregisterIdentityChangedListener in interface AWSCognitoIdentityProviderlistener - the listener to be removedpublic void registerIdentityChangedListener(IdentityChangedListener listener)
AWSCognitoIdentityProvider
registerIdentityChangedListener in interface AWSCognitoIdentityProviderlistener - the new listener to be registeredpublic void identityChanged(java.lang.String newIdentityId)
identityChanged in interface AWSCognitoIdentityProvidernewIdentityId - the identityId to be savedpublic void clearListeners()
AWSCognitoIdentityProvider
clearListeners in interface AWSCognitoIdentityProvider
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||