Package com.okta.jwt.impl
Class DefaultJwt
java.lang.Object
com.okta.jwt.impl.DefaultJwt
- All Implemented Interfaces:
com.okta.jwt.Jwt
Default simple bean implementation of
Jwt.
Classes in this `impl` implementation package may change in NON backward compatible way, and should ONLY be used as
a "runtime" dependency.-
Constructor Summary
ConstructorsConstructorDescriptionDefaultJwt(String tokenValue, java.time.Instant issuedAt, java.time.Instant expiresAt, Map<String, Object> claims) Creates an instance based on input from an already parsed and validated JWT. -
Method Summary
Modifier and TypeMethodDescriptionjava.time.Instantjava.time.Instant
-
Constructor Details
-
DefaultJwt
public DefaultJwt(String tokenValue, java.time.Instant issuedAt, java.time.Instant expiresAt, Map<String, Object> claims) Creates an instance based on input from an already parsed and validated JWT.- Parameters:
tokenValue- Original JWT stringissuedAt- The value from theiatclaim, as anInstantexpiresAt- The value from theexpclaim, as anInstantclaims- A map of the original claim values in the JWT
-
-
Method Details
-
getTokenValue
- Specified by:
getTokenValuein interfacecom.okta.jwt.Jwt
-
getIssuedAt
public java.time.Instant getIssuedAt()- Specified by:
getIssuedAtin interfacecom.okta.jwt.Jwt
-
getExpiresAt
public java.time.Instant getExpiresAt()- Specified by:
getExpiresAtin interfacecom.okta.jwt.Jwt
-
getClaims
- Specified by:
getClaimsin interfacecom.okta.jwt.Jwt
-