public class CognitoIdToken extends CognitoUserToken
Constructor and Description |
---|
CognitoIdToken(String jwtToken)
Create a new id token.
|
Modifier and Type | Method and Description |
---|---|
Date |
getExpiration()
Returns expiration of this id token.
|
Date |
getIssuedAt()
Returns "issued at" claim of this id token
|
String |
getJWTToken()
Returns the id token formatted as JWT.
|
Date |
getNotBefore()
Returns "not before" claim of this id token
|
getToken
public CognitoIdToken(String jwtToken)
jwtToken
- REQUIRED: Valid JWT as a String.public String getJWTToken()
String
.public Date getExpiration()
Date
in UTC.public Date getNotBefore()
Date
in UTC.Copyright © 2018. All rights reserved.