Class Token.Jwt

  • All Implemented Interfaces:
    Token
    Enclosing interface:
    Token

    public static final class Token.Jwt
    extends Object
    implements Token
    JSON Web Token.
    Since:
    1.4
    • Constructor Detail

      • Jwt

        public Jwt​(Identity idt,
                   long age)
        JSON Web Token.
        Parameters:
        idt - Identity
        age - Lifetime of token.
    • Method Detail

      • json

        public javax.json.JsonObject json()
        Description copied from interface: Token
        JSON output.
        Specified by:
        json in interface Token
        Returns:
        The Token in JSON notation.
      • encoded

        public byte[] encoded()
        Description copied from interface: Token
        Base64 encoded JSON output.
        Specified by:
        encoded in interface Token
        Returns:
        The Token in JSON notation, Base64-encoded.