public interface AWSCognitoIdentityProvider extends AWSIdentityProvider
Modifier and Type | Method and Description |
---|---|
void |
clearListeners()
To be used to empty all registered listeners from the identity provider
|
java.lang.String |
getIdentityId()
Gets the identityId of the user
|
java.lang.String |
getIdentityPoolId()
Get the identityPoolId from the 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
|
boolean |
isAuthenticated()
Checks if the current identityId belongs to an authenticated user
|
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
|
getToken, refresh
java.lang.String getIdentityId()
java.lang.String getIdentityPoolId()
void setLogins(java.util.Map<java.lang.String,java.lang.String> loginsMap)
loginsMap
- the logins mapjava.util.Map<java.lang.String,java.lang.String> getLogins()
boolean isAuthenticated()
void registerIdentityChangedListener(IdentityChangedListener listener)
listener
- the new listener to be registeredvoid unregisterIdentityChangedListener(IdentityChangedListener listener)
listener
- the listener to be removedvoid identityChanged(java.lang.String newIdentity)
newIdentity
- the new identityId for the uservoid clearListeners()
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.