- HMAC256
Creates a new Algorithm instance using HmacSHA256. Tokens specify this as
"HS256".
- RSA256
Creates a new Algorithm instance using SHA256withRSA. Tokens specify this as
"RS256".
- RSA384
Creates a new Algorithm instance using SHA384withRSA. Tokens specify this as
"RS384".
- RSA512
Creates a new Algorithm instance using SHA512withRSA. Tokens specify this as
"RS512".
- ECDSA384
Creates a new Algorithm instance using SHA384withECDSA. Tokens specify this as
"ES384".
- HMAC384
Creates a new Algorithm instance using HmacSHA384. Tokens specify this as
"HS384".
- HMAC512
Creates a new Algorithm instance using HmacSHA512. Tokens specify this as
"HS512".
- sign
Sign the given content using this Algorithm instance.
- ECDSA256
Creates a new Algorithm instance using SHA256withECDSA. Tokens specify this as
"ES256".
- ECDSA512
Creates a new Algorithm instance using SHA512withECDSA. Tokens specify this as
"ES512".
- getName
Getter for the name of this Algorithm, as defined in the JWT Standard. i.e.
"HS256"
- verify
Verify the given token using this Algorithm instance.