public final class AWSCognitoAuthSession
extends com.amplifyframework.auth.AuthSession
| Constructor and Description |
|---|
AWSCognitoAuthSession(boolean isSignedIn,
com.amplifyframework.auth.result.AuthSessionResult<java.lang.String> identityId,
com.amplifyframework.auth.result.AuthSessionResult<com.amazonaws.auth.AWSCredentials> awsCredentials,
com.amplifyframework.auth.result.AuthSessionResult<java.lang.String> userSub,
com.amplifyframework.auth.result.AuthSessionResult<AWSCognitoUserPoolTokens> userPoolTokens)
Cognito extension of AuthSession containing AWS Cognito specific tokens.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
com.amplifyframework.auth.result.AuthSessionResult<com.amazonaws.auth.AWSCredentials> |
getAWSCredentials()
The credentials which come from Identity Pool.
|
com.amplifyframework.auth.result.AuthSessionResult<java.lang.String> |
getIdentityId()
The id which comes from Identity Pools.
|
com.amplifyframework.auth.result.AuthSessionResult<AWSCognitoUserPoolTokens> |
getUserPoolTokens()
The tokens which come from User Pools (access, id, refresh tokens).
|
com.amplifyframework.auth.result.AuthSessionResult<java.lang.String> |
getUserSub()
The id which comes from User Pools.
|
int |
hashCode() |
java.lang.String |
toString() |
public AWSCognitoAuthSession(boolean isSignedIn,
@NonNull
com.amplifyframework.auth.result.AuthSessionResult<java.lang.String> identityId,
@NonNull
com.amplifyframework.auth.result.AuthSessionResult<com.amazonaws.auth.AWSCredentials> awsCredentials,
@NonNull
com.amplifyframework.auth.result.AuthSessionResult<java.lang.String> userSub,
@NonNull
com.amplifyframework.auth.result.AuthSessionResult<AWSCognitoUserPoolTokens> userPoolTokens)
isSignedIn - Are you currently in a signed in state (an AuthN indicator to be technical)awsCredentials - The credentials which come from Identity PooluserSub - The id which comes from User PoolsidentityId - The id which comes from Identity PoolsuserPoolTokens - The tokens which come from User Pools (access, id, refresh tokens)@NonNull public com.amplifyframework.auth.result.AuthSessionResult<com.amazonaws.auth.AWSCredentials> getAWSCredentials()
@NonNull public com.amplifyframework.auth.result.AuthSessionResult<java.lang.String> getUserSub()
@NonNull public com.amplifyframework.auth.result.AuthSessionResult<java.lang.String> getIdentityId()
@NonNull public com.amplifyframework.auth.result.AuthSessionResult<AWSCognitoUserPoolTokens> getUserPoolTokens()
public int hashCode()
hashCode in class com.amplifyframework.auth.AuthSessionpublic boolean equals(java.lang.Object obj)
equals in class com.amplifyframework.auth.AuthSessionpublic java.lang.String toString()
toString in class com.amplifyframework.auth.AuthSession