SigningAlgorithm
Sealed class representing the JWS signing algorithms defined in RFC 7518.
The supported algorithms are grouped by their cryptographic family:
PKCS1Based — RSA PKCS#1 v1.5 algorithms (RS256, RS384, RS512).
ECDSABased — Elliptic Curve DSA algorithms (ES256, ES384, ES512).
None — the unsecured algorithm (
alg=none); rejected by the parser unlessallowUnsecured(true)is set.
Use fromId to look up an instance by its JWA identifier string.
See also
Inheritors
Types
Groups the ECDSA signing algorithms (ES256, ES384, ES512).
EdDSA with Ed25519 curve (Ed25519) signing algorithm using Edwards-curve key pairs (RFC 8037).
EdDSA with Ed448 curve (Ed448) signing algorithm using Edwards-curve key pairs (RFC 8037).
Groups the EdDSA signing algorithms (Ed25519, Ed448) as defined in RFC 8037.
ECDSA with SHA-256 (ES256) signing algorithm using elliptic-curve key pairs.
ECDSA with SHA-384 (ES384) signing algorithm using elliptic-curve key pairs.
ECDSA with SHA-512 (ES512) signing algorithm using elliptic-curve key pairs.
HMAC with SHA-256 (HS256) signing algorithm using a symmetric HMAC Key.
HMAC with SHA-384 (HS384) signing algorithm using a symmetric HMAC Key.
HMAC with SHA-512 (HS512) signing algorithm using a symmetric HMAC Key.
Groups the HMAC-based signing algorithms (HS256, HS384, HS512).
Unsecured JWT — opt-in only. Rejected by parser unless allowUnsecured(true).
Groups the RSA PKCS#1 v1.5 signing algorithms (RS256, RS384, RS512).
RSA PSS with SHA-256 (PS256) signing algorithm using RSA key pairs.
RSA PSS with SHA-384 (PS384) signing algorithm using RSA key pairs.
RSA PSS with SHA-512 (PS512) signing algorithm using RSA key pairs.
Groups the RSA PSS signing algorithms (PS256, PS384, PS512).
RSA PKCS#1 v1.5 with SHA-256 (RS256) signing algorithm using RSA key pairs.
RSA PKCS#1 v1.5 with SHA-384 (RS384) signing algorithm using RSA key pairs.
RSA PKCS#1 v1.5 with SHA-512 (RS512) signing algorithm using RSA key pairs.