public class IdToken extends UserToken
| Constructor and Description |
|---|
IdToken(java.lang.String jwtToken)
Create a new id token.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getCognitoUsername()
Returns the Cognito username set in the id token.
|
java.util.Date |
getExpiration()
Returns expiration of this id token.
|
java.util.Date |
getIssuedAt()
Returns "issued at" claim of this id token
|
java.lang.String |
getJWTToken()
Returns the id token formatted as JWT.
|
java.util.Date |
getNotBefore()
Returns "not before" claim of this id token
|
public IdToken(java.lang.String jwtToken)
jwtToken - Required: Valid JWT as a String.public java.lang.String getJWTToken()
public java.util.Date getExpiration()
throws java.lang.Exception
Date in UTC.java.lang.Exceptionpublic java.util.Date getNotBefore()
throws java.lang.Exception
Date in UTC.java.lang.Exceptionpublic java.util.Date getIssuedAt()
throws java.lang.Exception
Date in UTC.java.lang.Exceptionpublic java.lang.String getCognitoUsername()
throws java.lang.Exception
java.lang.Exception