| Safe Haskell | None |
|---|---|
| Language | Haskell98 |
Crypto.JOSE.Error
Contents
Description
JOSE error types.
- data Error
- = AlgorithmNotImplemented
- | AlgorithmMismatch String
- | KeyMismatch String
- | KeySizeTooSmall
- | OtherPrimesNotSupported
- | RSAError Error
- | CryptoError CryptoError
- | CompactEncodeError String
- | CompactDecodeError String
- | JSONDecodeError String
- | JWSCritUnprotected
- | JWSNoValidSignatures
- | JWSInvalidSignature
- | JWSNoSignatures
- class AsError r where
Documentation
All the errors that can occur.
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 |
| 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 |
| JWSCritUnprotected | |
| JWSNoValidSignatures |
|
| JWSInvalidSignature |
|
| JWSNoSignatures |
|
class AsError r where Source #
Methods
_Error :: Prism' r Error Source #
_AlgorithmNotImplemented :: Prism' r () Source #
_AlgorithmMismatch :: Prism' r String Source #
_KeyMismatch :: Prism' r String Source #
_KeySizeTooSmall :: Prism' r () Source #
_OtherPrimesNotSupported :: Prism' r () Source #
_RSAError :: Prism' r Error Source #
_CryptoError :: Prism' r CryptoError Source #
_CompactEncodeError :: Prism' r String Source #
_CompactDecodeError :: Prism' r String Source #
_JSONDecodeError :: Prism' r String Source #
_JWSCritUnprotected :: Prism' r () Source #
_JWSNoValidSignatures :: Prism' r () Source #
_JWSInvalidSignature :: Prism' r () Source #
_JWSNoSignatures :: Prism' r () Source #
Orphan instances
| (MonadRandom m, MonadTrans t, Functor (t m), Monad (t m)) => MonadRandom (t m) Source # | |