| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Jose.Jwt
Documentation
type Jwe = (JweHeader, ByteString) Source
The header and claims of a decoded JWE.
type Jws = (JwsHeader, ByteString) Source
The header and claims of a decoded JWS.
Header content for a JWS.
Constructors
| JwsHeader | |
Header content for a JWE.
Constructors
| JweHeader | |
Decoding errors.
Constructors
| KeyError Text | No suitable key or wrong key type |
| BadDots Int | Wrong number of "." characters in the JWT |
| BadHeader | Header couldn't be decoded or contains bad data |
| BadSignature | Signature is invalid |
| BadCrypto | A cryptographic operation failed |
| Base64Error String | A base64 decoding error |
Arguments
| :: JwkSet | The keys to use for decoding |
| -> ByteString | The encoded JWT |
| -> Either JwtError Jwt | The decoded JWT, if successful |
Uses the supplied keys to decode a JWT.
Locates a matching key by header kid value where possible
or by suitable key type.
The JWK use and alg options are currently ignored.