public class CognitoIdToken extends CognitoUserToken
Constructor and Description |
---|
CognitoIdToken(java.lang.String jwtToken)
Create a new id token.
|
Modifier and Type | Method and Description |
---|---|
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 CognitoIdToken(java.lang.String jwtToken)
jwtToken
- REQUIRED: Valid JWT as a String.public java.lang.String getJWTToken()
String
.public java.util.Date getExpiration()
Date
in UTC.public java.util.Date getNotBefore()
Date
in UTC.public java.util.Date getIssuedAt()
Date
in UTC.Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.