Package org.jose4j.jwt.consumer
Class JwtContext
java.lang.Object
org.jose4j.jwt.consumer.JwtContext
-
Constructor Summary
ConstructorsConstructorDescriptionJwtContext(String jwt, JwtClaims jwtClaims, List<JsonWebStructure> joseObjects) JwtContext(JwtClaims jwtClaims, List<JsonWebStructure> joseObjects) -
Method Summary
Modifier and TypeMethodDescriptionAll of the JOSE objects that comprise the JWT.getJwt()Gets the original 'raw' JWT string.Gets the claims from the processed JWT (when available) .
-
Constructor Details
-
JwtContext
-
JwtContext
-
-
Method Details
-
getJwtClaims
Gets the claims from the processed JWT (when available) .- Returns:
- the JWT claims (may be null if there was an error preventing the JSON claims from being parsed)
-
getJoseObjects
All of the JOSE objects that comprise the JWT. When the JWT is nested, the first item in the list is the inner most JOSE object.- Returns:
- the list of JOSE objects that comprise the JWT
-
getJwt
Gets the original 'raw' JWT string.- Returns:
- the JWT
-