jsonwebtoken library Null safety

Classes

Audience
Audience claim. Can contains one or more audience entry, used like a list
ECPrivateKey
For ECDSA algorithm, in sign method
ECPublicKey
For ECDSA algorithm, in verify method
EdDSAPrivateKey
For EdDSA algorithm, in sign method
EdDSAPublicKey
For EdDSA algorithm, in verify method
JWT
JWTAlgorithm
JWTKey
RSAPrivateKey
For RSA algorithm, in sign method
RSAPublicKey
For RSA algorithm, in verify method
SecretKey
For HMAC algorithms

Functions

parseECPrivateKeyPEM(String pem) ECPrivateKey?
Parse ECDSA private key from pem string
parseECPublicKeyPEM(String pem) ECPublicKey?
Parse ECDSA public key from pem string
parseRSAPrivateKeyPEM(String pem) RSAPrivateKey?
Parse RSA private key from pem string
parseRSAPublicKeyPEM(String pem) RSAPublicKey?
Parse RSA public key from pem string

Exceptions / Errors

JWTError
JWTError objects thrown in the case of a jwt sign or verify failure.
JWTExpiredError
An error thrown when jwt is expired
JWTInvalidError
An error thrown when jwt is invalid
JWTNotActiveError
An error thrown when jwt is not active
JWTParseError
An error thrown when parsing failed
JWTUndefinedError
An error thrown by default