| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
| Extensions |
|
Libjwt.Header
Description
JWT header representation
Documentation
"alg" header parameter
Constructors
| None | |
| HS256 Secret | HMAC SHA-256 (secret key must be at least 256 bits in size) |
| HS384 Secret | HMAC SHA-384 (secret key must be at least 384 bits in size) |
| HS512 Secret | HMAC SHA-512 (secret key must be at least 512 bits in size) |
| RS256 RsaKeyPair | RSASSA-PKCS1-v1_5 SHA-256 (a key of size 2048 bits or larger must be used with this algorithm) |
| RS384 RsaKeyPair | RSASSA-PKCS1-v1_5 SHA-384 (a key of size 2048 bits or larger must be used with this algorithm) |
| RS512 RsaKeyPair | RSASSA-PKCS1-v1_5 SHA-512 (a key of size 2048 bits or larger must be used with this algorithm) |
| ES256 EcKeyPair | ECDSA with P-256 curve and SHA-256 |
| ES384 EcKeyPair | ECDSA with P-384 curve and SHA-384 |
| ES512 EcKeyPair | ECDSA with P-521 curve and SHA-512 |
"typ" header parameter
Constructors
| JWT | |
| Typ (Maybe ByteString) |