jose-0.2.31.0: Javascript Object Signing and Encryption and JSON Web Token library

Safe HaskellNone

Crypto.JOSE.Error

Description

JOSE error types.

Synopsis

Documentation

data Error Source

All the errors that can occur, with the notable exception of Aeson decoding functions. Aeson decoding errors that occur in decodeCompact are, however, lifted into this type via the JSONDecodeError constructor.

Constructors

AlgorithmNotImplemented

A requested algorithm is not implemented

AlgorithmMismatch String

A requested algorithm cannot be used

KeyMismatch String

Wrong type of key was given

KeySizeTooSmall

Key size is too small

RSAError Error

RSA encryption, decryption or signing error

CompactEncodeError String

Cannot produce compact representation of data

CompactDecodeError String

Cannot decode compact representation

JSONDecodeError String

Cannot decode JSON data

Instances