Package com.okta.jwt
Interface Jwt
public interface Jwt
A Jwt object represents the claims Body of a JWT object.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the token body clams as Map.java.time.InstantReturns the `exp` claim value as anInstant.java.time.InstantReturns the `iat` claim value as anInstant.Returns the original string representation of this JWT.
-
Method Details
-
getTokenValue
String getTokenValue()Returns the original string representation of this JWT.- Returns:
- original JWT string representation
-
getIssuedAt
java.time.Instant getIssuedAt()Returns the `iat` claim value as anInstant.- Returns:
- `iat` claim value
-
getExpiresAt
java.time.Instant getExpiresAt()Returns the `exp` claim value as anInstant.- Returns:
- `exp` claim value
-
getClaims
Returns the token body clams as Map.- Returns:
- the token body clams as Map
-