| Safe Haskell | None |
|---|---|
| Language | Haskell98 |
Crypto.JOSE.Error
Contents
Description
JOSE error types.
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 |
| CompactDecodeError String | Cannot decode compact representation |
| JSONDecodeError String | JSON (Aeson) decoding error |
| JWSCritUnprotected | |
| JWSNoValidSignatures |
|
| JWSInvalidSignature |
|
| JWSNoSignatures |
|
Instances
| Eq Error # | |
| Show Error # | |
| AsError Error # | |
Defined in Crypto.JOSE.Error Methods _Error :: Prism' Error Error # _AlgorithmNotImplemented :: Prism' Error () # _AlgorithmMismatch :: Prism' Error String # _KeyMismatch :: Prism' Error String # _KeySizeTooSmall :: Prism' Error () # _OtherPrimesNotSupported :: Prism' Error () # _RSAError :: Prism' Error Error0 # _CryptoError :: Prism' Error CryptoError # _CompactDecodeError :: Prism' Error String # _JSONDecodeError :: Prism' Error String # _JWSCritUnprotected :: Prism' Error () # _JWSNoValidSignatures :: Prism' Error () # _JWSInvalidSignature :: Prism' Error () # _JWSNoSignatures :: Prism' Error () # | |
Minimal complete definition
Methods
_AlgorithmNotImplemented :: Prism' r () #
_AlgorithmMismatch :: Prism' r String #
_KeyMismatch :: Prism' r String #
_KeySizeTooSmall :: Prism' r () #
_OtherPrimesNotSupported :: Prism' r () #
_CryptoError :: Prism' r CryptoError #
_CompactDecodeError :: Prism' r String #
_JSONDecodeError :: Prism' r String #
_JWSCritUnprotected :: Prism' r () #
_JWSNoValidSignatures :: Prism' r () #
_JWSInvalidSignature :: Prism' r () #
_JWSNoSignatures :: Prism' r () #
Instances
Orphan instances
| (MonadRandom m, MonadTrans t, Functor (t m), Monad (t m)) => MonadRandom (t m) # | |
Methods getRandomBytes :: ByteArray byteArray => Int -> t m byteArray # | |