Safe Haskell | None |
---|---|
Language | Haskell98 |
JOSE error types.
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 |
CompactDecodeError String | Cannot decode compact representation |
JSONDecodeError String | JSON (Aeson) decoding error |
JWSCritUnprotected | |
JWSNoValidSignatures |
|
JWSInvalidSignature |
|
JWSNoSignatures |
|
class AsError r where Source #
_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 #
_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 # | |