public class CognitoAccessToken extends CognitoUserToken
Constructor and Description |
---|
CognitoAccessToken(java.lang.String jwtToken)
Create a new access token.
|
Modifier and Type | Method and Description |
---|---|
java.util.Date |
getExpiration()
Returns expiration of this access token.
|
java.lang.String |
getJWTToken()
Returns the access token formatted as JWT.
|
java.lang.String |
getUsername()
Returns the username set in the access token.
|
public CognitoAccessToken(java.lang.String jwtToken)
jwtToken
- REQUIRED: Valid JWT as a String.public java.lang.String getJWTToken()
String
.public java.util.Date getExpiration()
public java.lang.String getUsername() throws java.lang.Exception
java.lang.Exception
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.