public class AuthenticationResultType
extends java.lang.Object
implements java.io.Serializable
The authentication result.
| Constructor and Description |
|---|
AuthenticationResultType() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAccessToken()
A valid access token that Amazon Cognito issued to the user who you want
to authenticate.
|
java.lang.Integer |
getExpiresIn()
The expiration period of the authentication result in seconds.
|
java.lang.String |
getIdToken()
The ID token.
|
NewDeviceMetadataType |
getNewDeviceMetadata()
The new device metadata from an authentication result.
|
java.lang.String |
getRefreshToken()
The refresh token.
|
java.lang.String |
getTokenType()
The token type.
|
int |
hashCode() |
void |
setAccessToken(java.lang.String accessToken)
A valid access token that Amazon Cognito issued to the user who you want
to authenticate.
|
void |
setExpiresIn(java.lang.Integer expiresIn)
The expiration period of the authentication result in seconds.
|
void |
setIdToken(java.lang.String idToken)
The ID token.
|
void |
setNewDeviceMetadata(NewDeviceMetadataType newDeviceMetadata)
The new device metadata from an authentication result.
|
void |
setRefreshToken(java.lang.String refreshToken)
The refresh token.
|
void |
setTokenType(java.lang.String tokenType)
The token type.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
AuthenticationResultType |
withAccessToken(java.lang.String accessToken)
A valid access token that Amazon Cognito issued to the user who you want
to authenticate.
|
AuthenticationResultType |
withExpiresIn(java.lang.Integer expiresIn)
The expiration period of the authentication result in seconds.
|
AuthenticationResultType |
withIdToken(java.lang.String idToken)
The ID token.
|
AuthenticationResultType |
withNewDeviceMetadata(NewDeviceMetadataType newDeviceMetadata)
The new device metadata from an authentication result.
|
AuthenticationResultType |
withRefreshToken(java.lang.String refreshToken)
The refresh token.
|
AuthenticationResultType |
withTokenType(java.lang.String tokenType)
The token type.
|
public java.lang.String getAccessToken()
A valid access token that Amazon Cognito issued to the user who you want to authenticate.
Constraints:
Pattern: [A-Za-z0-9-_=.]+
A valid access token that Amazon Cognito issued to the user who you want to authenticate.
public void setAccessToken(java.lang.String accessToken)
A valid access token that Amazon Cognito issued to the user who you want to authenticate.
Constraints:
Pattern: [A-Za-z0-9-_=.]+
accessToken - A valid access token that Amazon Cognito issued to the user who you want to authenticate.
public AuthenticationResultType withAccessToken(java.lang.String accessToken)
A valid access token that Amazon Cognito issued to the user who you want to authenticate.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: [A-Za-z0-9-_=.]+
accessToken - A valid access token that Amazon Cognito issued to the user who you want to authenticate.
public java.lang.Integer getExpiresIn()
The expiration period of the authentication result in seconds.
The expiration period of the authentication result in seconds.
public void setExpiresIn(java.lang.Integer expiresIn)
The expiration period of the authentication result in seconds.
expiresIn - The expiration period of the authentication result in seconds.
public AuthenticationResultType withExpiresIn(java.lang.Integer expiresIn)
The expiration period of the authentication result in seconds.
Returns a reference to this object so that method calls can be chained together.
expiresIn - The expiration period of the authentication result in seconds.
public java.lang.String getTokenType()
The token type.
Constraints:
Length: 0 - 131072
The token type.
public void setTokenType(java.lang.String tokenType)
The token type.
Constraints:
Length: 0 - 131072
tokenType - The token type.
public AuthenticationResultType withTokenType(java.lang.String tokenType)
The token type.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 0 - 131072
tokenType - The token type.
public java.lang.String getRefreshToken()
The refresh token.
Constraints:
Pattern: [A-Za-z0-9-_=.]+
The refresh token.
public void setRefreshToken(java.lang.String refreshToken)
The refresh token.
Constraints:
Pattern: [A-Za-z0-9-_=.]+
refreshToken - The refresh token.
public AuthenticationResultType withRefreshToken(java.lang.String refreshToken)
The refresh token.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: [A-Za-z0-9-_=.]+
refreshToken - The refresh token.
public java.lang.String getIdToken()
The ID token.
Constraints:
Pattern: [A-Za-z0-9-_=.]+
The ID token.
public void setIdToken(java.lang.String idToken)
The ID token.
Constraints:
Pattern: [A-Za-z0-9-_=.]+
idToken - The ID token.
public AuthenticationResultType withIdToken(java.lang.String idToken)
The ID token.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Pattern: [A-Za-z0-9-_=.]+
idToken - The ID token.
public NewDeviceMetadataType getNewDeviceMetadata()
The new device metadata from an authentication result.
The new device metadata from an authentication result.
public void setNewDeviceMetadata(NewDeviceMetadataType newDeviceMetadata)
The new device metadata from an authentication result.
newDeviceMetadata - The new device metadata from an authentication result.
public AuthenticationResultType withNewDeviceMetadata(NewDeviceMetadataType newDeviceMetadata)
The new device metadata from an authentication result.
Returns a reference to this object so that method calls can be chained together.
newDeviceMetadata - The new device metadata from an authentication result.
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object