Interface Token

  • All Known Implementing Classes:
    Token.Jose, Token.Jwt

    public interface Token
    JSON Token.

    All implementations of this interface must be immutable and thread-safe.

    Since:
    1.4
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface Description
      static class  Token.Jose
      JSON Object Signing and Encryption Header.
      static class  Token.Jwt
      JSON Web Token.
    • Method Detail

      • json

        javax.json.JsonObject json()
        JSON output.
        Returns:
        The Token in JSON notation.
      • encoded

        byte[] encoded()
        Base64 encoded JSON output.
        Returns:
        The Token in JSON notation, Base64-encoded.