public class Token
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
MILLIS_PER_SEC |
Constructor and Description |
---|
Token(java.lang.String token) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getClaim(java.lang.String claim)
Returns the claim if found in the token, otherwise throws
|
java.util.Date |
getExpiration()
Returns expiration of this id token.
|
java.util.Date |
getIssuedAt()
Returns "issued at" claim of this id token
|
java.util.Date |
getNotBefore()
Returns "not before" claim of this id token
|
java.lang.String |
getTokenString()
Returns the id token formatted as JWT.
|
public static final int MILLIS_PER_SEC
public java.lang.String getTokenString()
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.public java.lang.String getClaim(java.lang.String claim)
claim
- the name of the claimCopyright © 2018 Amazon Web Services, Inc. All Rights Reserved.