jose-0.4.0.3: 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 #

FromJSON EC Source # 
ToJSON EC Source # 

data RSA Source #

RSA key type (Required)

Constructors

RSA 

data Oct Source #

Octet sequence (symmetric key) key type (Required)

Constructors

Oct 

Parameters for Elliptic Curve Keys

data Crv Source #

"crv" (Curve) Parameter

Constructors

P_256 
P_384 
P_521 

Parameters for RSA Keys

Parameters for Symmetric Keys

data KeyMaterialGenParam Source #

Keygen parameters.