Class JwtContext

java.lang.Object
org.jose4j.jwt.consumer.JwtContext

public class JwtContext extends Object
  • Constructor Details

  • Method Details

    • getJwtClaims

      public JwtClaims 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

      public List<JsonWebStructure> 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

      public String getJwt()
      Gets the original 'raw' JWT string.
      Returns:
      the JWT