| 
 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectcom.amazonaws.auth.AWSAbstractCognitoIdentityProvider
com.amazonaws.auth.AWSBasicCognitoIdentityProvider
public class AWSBasicCognitoIdentityProvider
An extension of the AbstractCognitoProvider that utilizes Cognito as a means to validate an identity and dispense an identityId and token. All other functionality is the same as that of AbstractCognitoIdentityProvider
| Constructor Summary | |
|---|---|
| AWSBasicCognitoIdentityProvider(java.lang.String accountId,
                                java.lang.String identityPoolId)Wraps around the AbstractIdentityProvider to cover some back end code that is consistent across all providers, utilizing the CIB client to handle the identity management. | |
| AWSBasicCognitoIdentityProvider(java.lang.String accountId,
                                java.lang.String identityPoolId,
                                AmazonCognitoIdentity cibClient)Wraps around the AbstractIdentityProvider to cover some back end code that is consistent across all providers, utilizing the CIB client to handle the identity management. | |
| AWSBasicCognitoIdentityProvider(java.lang.String accountId,
                                java.lang.String identityPoolId,
                                ClientConfiguration clientConfiguration)Wraps around the AbstractIdentityProvider to cover some back end code that is consistent across all providers, utilizing the CIB client to handle the identity management. | |
| Method Summary | |
|---|---|
|  java.lang.String | getIdentityId()Gets a reference to the identityId of the user (sending a new request if it isn't yet set), using the dev accountId, identityPoolId, and the user's loginsMap to identify. | 
|  java.lang.String | getProviderName()Gets a string with the name of the provider being used. | 
|  java.lang.String | getToken()With the logins and identityId to mark the user, it builds a request to the cognito back end, and returns the token cib hands back | 
|  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, getIdentityPoolId, getLogins, identityChanged, registerIdentityChangedListener, setLogins, unregisterIdentityChangedListener | 
| Methods inherited from class java.lang.Object | 
|---|
| equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public AWSBasicCognitoIdentityProvider(java.lang.String accountId,
                                       java.lang.String identityPoolId)
accountId - the account id of the developeridentityPoolId - the identity pool id of the app/user in question
public AWSBasicCognitoIdentityProvider(java.lang.String accountId,
                                       java.lang.String identityPoolId,
                                       ClientConfiguration clientConfiguration)
accountId - the account id of the developeridentityPoolId - the identity pool id of the app/user in questionclientConfiguration - the configuration to apply to service clients
            created
public AWSBasicCognitoIdentityProvider(java.lang.String accountId,
                                       java.lang.String identityPoolId,
                                       AmazonCognitoIdentity cibClient)
accountId - the account id of the developeridentityPoolId - the identity pool id of the app/user in questioncibClient - the cib client which will be used to contact the cib
            back end| Method Detail | 
|---|
public java.lang.String getToken()
getToken in interface AWSIdentityProvidergetToken in class AWSAbstractCognitoIdentityProviderpublic java.lang.String getIdentityId()
getIdentityId in interface AWSIdentityProvidergetIdentityId in class AWSAbstractCognitoIdentityProviderpublic java.lang.String getProviderName()
AWSAbstractCognitoIdentityProvider
getProviderName in class AWSAbstractCognitoIdentityProviderpublic java.lang.String refresh()
AWSCognitoIdentityProvider
| 
 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||