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

Safe HaskellNone
LanguageHaskell98

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

OtherPrimesNotSupported

RSA private key with >2 primes not supported

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

JWSMissingHeader 
JWSMissingAlg 
JWSCritUnprotected 
JWSDuplicateHeaderParameter 

Instances