Safe Haskell | None |
---|---|
Language | Haskell2010 |
JSON Web Encryption data types specified under JSON Web Algorithms.
Synopsis
- data AlgWithParams
- = RSA1_5
- | RSA_OAEP
- | RSA_OAEP_256
- | A128KW
- | A192KW
- | A256KW
- | Dir
- | ECDH_ES ECDHParameters
- | ECDH_ES_A128KW ECDHParameters
- | ECDH_ES_A192KW ECDHParameters
- | ECDH_ES_A256KW ECDHParameters
- | A128GCMKW AESGCMParameters
- | A192GCMKW AESGCMParameters
- | A256GCMKW AESGCMParameters
- | PBES2_HS256_A128KW PBES2Parameters
- | PBES2_HS384_A192KW PBES2Parameters
- | PBES2_HS512_A256KW PBES2Parameters
- algObject :: Value -> Value
- algWithParamsObject :: ToJSON a => a -> Value -> Value
- data ECDHParameters = ECDHParameters {
- _epk :: JWK
- _apu :: Maybe Base64Octets
- _apv :: Maybe Base64Octets
- data AESGCMParameters = AESGCMParameters {
- _iv :: Base64Octets
- _tag :: Base64Octets
- data PBES2Parameters = PBES2Parameters {
- _p2s :: Base64Octets
- _p2c :: Int
- data Enc
Documentation
data AlgWithParams Source #
RFC 7518 §4. Cryptographic Algorithms for Key Management
Instances
Eq AlgWithParams Source # | |
Defined in Crypto.JOSE.JWA.JWE (==) :: AlgWithParams -> AlgWithParams -> Bool # (/=) :: AlgWithParams -> AlgWithParams -> Bool # | |
Show AlgWithParams Source # | |
Defined in Crypto.JOSE.JWA.JWE showsPrec :: Int -> AlgWithParams -> ShowS # show :: AlgWithParams -> String # showList :: [AlgWithParams] -> ShowS # | |
ToJSON AlgWithParams Source # | |
Defined in Crypto.JOSE.JWA.JWE toJSON :: AlgWithParams -> Value # toEncoding :: AlgWithParams -> Encoding # toJSONList :: [AlgWithParams] -> Value # toEncodingList :: [AlgWithParams] -> Encoding # | |
FromJSON AlgWithParams Source # | |
Defined in Crypto.JOSE.JWA.JWE parseJSON :: Value -> Parser AlgWithParams # parseJSONList :: Value -> Parser [AlgWithParams] # |
data ECDHParameters Source #
RFC 7518 §4.6.1. Header Parameters Used for ECDH Key Agreement
ECDHParameters | |
|
Instances
Eq ECDHParameters Source # | |
Defined in Crypto.JOSE.JWA.JWE (==) :: ECDHParameters -> ECDHParameters -> Bool # (/=) :: ECDHParameters -> ECDHParameters -> Bool # | |
Show ECDHParameters Source # | |
Defined in Crypto.JOSE.JWA.JWE showsPrec :: Int -> ECDHParameters -> ShowS # show :: ECDHParameters -> String # showList :: [ECDHParameters] -> ShowS # | |
ToJSON ECDHParameters Source # | |
Defined in Crypto.JOSE.JWA.JWE toJSON :: ECDHParameters -> Value # toEncoding :: ECDHParameters -> Encoding # toJSONList :: [ECDHParameters] -> Value # toEncodingList :: [ECDHParameters] -> Encoding # | |
FromJSON ECDHParameters Source # | |
Defined in Crypto.JOSE.JWA.JWE parseJSON :: Value -> Parser ECDHParameters # parseJSONList :: Value -> Parser [ECDHParameters] # |
data AESGCMParameters Source #
RFC 7518 §4.7.1. Header Parameters Used for AES GCM Key Encryption
AESGCMParameters | |
|
Instances
Eq AESGCMParameters Source # | |
Defined in Crypto.JOSE.JWA.JWE (==) :: AESGCMParameters -> AESGCMParameters -> Bool # (/=) :: AESGCMParameters -> AESGCMParameters -> Bool # | |
Show AESGCMParameters Source # | |
Defined in Crypto.JOSE.JWA.JWE showsPrec :: Int -> AESGCMParameters -> ShowS # show :: AESGCMParameters -> String # showList :: [AESGCMParameters] -> ShowS # | |
ToJSON AESGCMParameters Source # | |
Defined in Crypto.JOSE.JWA.JWE toJSON :: AESGCMParameters -> Value # toEncoding :: AESGCMParameters -> Encoding # toJSONList :: [AESGCMParameters] -> Value # toEncodingList :: [AESGCMParameters] -> Encoding # | |
FromJSON AESGCMParameters Source # | |
Defined in Crypto.JOSE.JWA.JWE parseJSON :: Value -> Parser AESGCMParameters # parseJSONList :: Value -> Parser [AESGCMParameters] # |
data PBES2Parameters Source #
RFC 7518 §4.8.1. Header Parameters Used for PBES2 Key Encryption
PBES2Parameters | |
|
Instances
Eq PBES2Parameters Source # | |
Defined in Crypto.JOSE.JWA.JWE (==) :: PBES2Parameters -> PBES2Parameters -> Bool # (/=) :: PBES2Parameters -> PBES2Parameters -> Bool # | |
Show PBES2Parameters Source # | |
Defined in Crypto.JOSE.JWA.JWE showsPrec :: Int -> PBES2Parameters -> ShowS # show :: PBES2Parameters -> String # showList :: [PBES2Parameters] -> ShowS # | |
ToJSON PBES2Parameters Source # | |
Defined in Crypto.JOSE.JWA.JWE toJSON :: PBES2Parameters -> Value # toEncoding :: PBES2Parameters -> Encoding # toJSONList :: [PBES2Parameters] -> Value # toEncodingList :: [PBES2Parameters] -> Encoding # | |
FromJSON PBES2Parameters Source # | |
Defined in Crypto.JOSE.JWA.JWE parseJSON :: Value -> Parser PBES2Parameters # parseJSONList :: Value -> Parser [PBES2Parameters] # |