Set encryption method, defaultHMACSHA256

    function algMethod(string $method):Jwt

Set secret key, defaultEasyswoole

    function setSecretKey(string $key):Jwt

Initializing the jwtobject of a token without additional information

    public function publish():JwtObject

Set encryption method, defaultHMACSHA256

    public function setAlg($alg): void

set user

    public function setAud($aud): void

Set expiration time

    public function setExp($exp): void

Set publishing time

    public function setIat($iat): void

Set up the issuer

    public function setIss(string $iss): void

Set JWT ID to identify the JWT

    public function setJti($jti): void

Not available until

    public function setNbf($nbf): void

set topic

    public function setSub($sub): void

Set other data

    public function setData($data): void

get token

    function __toString()