jose-0.4.0.2: Javascript Object Signing and Encryption and JSON Web Token library

Safe HaskellNone
LanguageHaskell98

Crypto.JOSE.JWK

Contents

Description

A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure that represents a cryptographic key. This module also defines a JSON Web Key Set (JWK Set) JSON data structure for representing a set of JWKs.

Synopsis

Documentation

data JWK Source #

JWK §3. JSON Web Key (JWK) Format

newtype JWKSet Source #

JWK §4. JSON Web Key Set (JWK Set) Format

Constructors

JWKSet [JWK] 

Type classes

"kty" (Key Type) Parameter Values

data EC Source #

Elliptic Curve key type (Recommeded+)

Constructors

EC 

Instances

Eq EC Source # 

Methods

(==) :: EC -> EC -> Bool #

(/=) :: EC -> EC -> Bool #

Show EC Source # 

Methods

showsPrec :: Int -> EC -> ShowS #

show :: EC -> String #

showList :: [EC] -> ShowS #

ToJSON EC Source # 

Methods

toJSON :: EC -> Value #

toEncoding :: EC -> Encoding #

FromJSON EC Source # 

Methods

parseJSON :: Value -> Parser EC #

data RSA Source #

RSA key type (Required)

Constructors

RSA 

Instances

Eq RSA Source # 

Methods

(==) :: RSA -> RSA -> Bool #

(/=) :: RSA -> RSA -> Bool #

Show RSA Source # 

Methods

showsPrec :: Int -> RSA -> ShowS #

show :: RSA -> String #

showList :: [RSA] -> ShowS #

ToJSON RSA Source # 

Methods

toJSON :: RSA -> Value #

toEncoding :: RSA -> Encoding #

FromJSON RSA Source # 

Methods

parseJSON :: Value -> Parser RSA #

data Oct Source #

Octet sequence (symmetric key) key type (Required)

Constructors

Oct 

Instances

Eq Oct Source # 

Methods

(==) :: Oct -> Oct -> Bool #

(/=) :: Oct -> Oct -> Bool #

Show Oct Source # 

Methods

showsPrec :: Int -> Oct -> ShowS #

show :: Oct -> String #

showList :: [Oct] -> ShowS #

ToJSON Oct Source # 

Methods

toJSON :: Oct -> Value #

toEncoding :: Oct -> Encoding #

FromJSON Oct Source # 

Methods

parseJSON :: Value -> Parser Oct #

Parameters for Elliptic Curve Keys

data Crv Source #

"crv" (Curve) Parameter

Constructors

P_256 
P_384 
P_521 

Instances

Eq Crv Source # 

Methods

(==) :: Crv -> Crv -> Bool #

(/=) :: Crv -> Crv -> Bool #

Show Crv Source # 

Methods

showsPrec :: Int -> Crv -> ShowS #

show :: Crv -> String #

showList :: [Crv] -> ShowS #

Arbitrary Crv Source # 

Methods

arbitrary :: Gen Crv #

shrink :: Crv -> [Crv] #

ToJSON Crv Source # 

Methods

toJSON :: Crv -> Value #

toEncoding :: Crv -> Encoding #

FromJSON Crv Source # 

Methods

parseJSON :: Value -> Parser Crv #

Parameters for RSA Keys

Parameters for Symmetric Keys

data KeyMaterialGenParam Source #

Keygen parameters.