Interface JWTPartsParser


public interface JWTPartsParser
The JWTPartsParser class defines which parts of the JWT should be converted to it's specific Object representation instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    Parses the given JSON into a Header instance.
    Parses the given JSON into a Payload instance.
  • Method Details

    • parsePayload

      Payload parsePayload(String json) throws JWTDecodeException
      Parses the given JSON into a Payload instance.
      Parameters:
      json - the content of the Payload in a JSON representation.
      Returns:
      the Payload.
      Throws:
      JWTDecodeException - if the json doesn't have a proper JSON format.
    • parseHeader

      Header parseHeader(String json) throws JWTDecodeException
      Parses the given JSON into a Header instance.
      Parameters:
      json - the content of the Header in a JSON representation.
      Returns:
      the Header.
      Throws:
      JWTDecodeException - if the json doesn't have a proper JSON format.