Safe Haskell | None |
---|---|
Language | Haskell98 |
JOSE error types.
- data Error
- = AlgorithmNotImplemented
- | AlgorithmMismatch String
- | KeyMismatch String
- | KeySizeTooSmall
- | OtherPrimesNotSupported
- | RSAError Error
- | CryptoError CryptoError
- | CompactEncodeError String
- | CompactDecodeError String
- | JSONDecodeError String
- | JWSMissingHeader
- | JWSMissingAlg
- | JWSCritUnprotected
- | JWSDuplicateHeaderParameter
Documentation
All the errors that can occur.
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 |
CryptoError CryptoError | Various cryptonite library error cases |
CompactEncodeError String | Cannot produce compact representation of data |
CompactDecodeError String | Cannot decode compact representation |
JSONDecodeError String | JSON (Aeson) decoding error |
JWSMissingHeader | |
JWSMissingAlg | |
JWSCritUnprotected | |
JWSDuplicateHeaderParameter |