Class Token.Jose

  • All Implemented Interfaces:
    Token
    Enclosing interface:
    Token

    public static final class Token.Jose
    extends Object
    implements Token
    JSON Object Signing and Encryption Header.
    Since:
    1.4
    • Constructor Detail

      • Jose

        public Jose​(int bitlength)
        JSON Object Signing and Encryption Header.
        Parameters:
        bitlength - Of encryption bits.
    • 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.