Interface JwtToken


public interface JwtToken
The JwtToken represents JSON Web Token (JWT) and consists of a payload which is represented by Claims and header and signature. This interface has three methods to return these.
Since:
1.0
  • Method Details

    • getClaims

      Claims getClaims()
      Returns:
      The JwtToken claims or payload
    • getHeader

      String getHeader(String name)
      Parameters:
      name - This is the header name
      Returns:
      The JwtToken header value corresponding to the given header name
    • compact

      String compact()
      Returns:
      The JwtToken as a string consisting of base64 encoded header, payload, signature separated by period ('.') characters.