Interface Jwt


public interface Jwt
An object representing a JWT token as described in the RFC 7519.
  • Method Summary

    Modifier and Type
    Method
    Description
    static Jwt
    create(String jwtValue)
    Creates a JWT from the provide JWT representation.
    The String representation of this JWT (i.e.
  • Method Details

    • create

      static Jwt create(String jwtValue)
      Creates a JWT from the provide JWT representation.
      Parameters:
      jwtValue - the JWT String representation of the JWT (i.e. a concatenation of base 64 URL encoded Strings separated with period characters).
      Returns:
      the object representing the JWT
      Throws:
      IllegalArgumentException - if the provided String does not have a valid JWT syntax
    • toString

      String toString()
      The String representation of this JWT (i.e. a concatenation of base 64 URL encoded Strings separated with period characters).
      Overrides:
      toString in class Object
      Returns:
      the String representation of the JWT