Safe Haskell | None |
---|---|
Language | Haskell98 |
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.
- data JWK = JWK KeyMaterial (Maybe KeyUse) (Maybe [KeyOp]) (Maybe Alg) (Maybe String) (Maybe URI) (Maybe (NonEmpty Base64X509)) (Maybe Base64SHA1) (Maybe Base64SHA256)
- jwkMaterial :: Lens' JWK KeyMaterial
- jwkUse :: Lens' JWK (Maybe KeyUse)
- jwkKeyOps :: Lens' JWK (Maybe [KeyOp])
- jwkAlg :: Lens' JWK (Maybe Alg)
- jwkKid :: Lens' JWK (Maybe String)
- jwkX5u :: Lens' JWK (Maybe URI)
- jwkX5c :: Lens' JWK (Maybe (NonEmpty Base64X509))
- jwkX5t :: Lens' JWK (Maybe Base64SHA1)
- jwkX5tS256 :: Lens' JWK (Maybe Base64SHA256)
- newtype JWKSet = JWKSet [JWK]
- data EC = EC
- data RSA = RSA
- data Oct = Oct
- data ECKeyParameters = ECKeyParameters {
- ecKty :: EC
- ecCrv :: Crv
- ecX :: SizedBase64Integer
- ecY :: SizedBase64Integer
- ecD :: Maybe SizedBase64Integer
- data RSAPrivateKeyOthElem = RSAPrivateKeyOthElem {}
- data RSAPrivateKeyOptionalParameters = RSAPrivateKeyOptionalParameters {}
- data RSAPrivateKeyParameters = RSAPrivateKeyParameters {}
- data RSAKeyParameters = RSAKeyParameters RSA SizedBase64Integer Base64Integer (Maybe RSAPrivateKeyParameters)
- rsaE :: Lens' RSAKeyParameters Base64Integer
- rsaKty :: Lens' RSAKeyParameters RSA
- rsaN :: Lens' RSAKeyParameters SizedBase64Integer
- rsaPrivateKeyParameters :: Lens' RSAKeyParameters (Maybe RSAPrivateKeyParameters)
- data OctKeyParameters = OctKeyParameters {
- octKty :: Oct
- octK :: Base64Octets
- data KeyMaterialGenParam
- = ECGenParam Crv
- | RSAGenParam Int
- | OctGenParam Int
- data KeyMaterial
Documentation
JWK §3. JSON Web Key (JWK) Format
JWK KeyMaterial (Maybe KeyUse) (Maybe [KeyOp]) (Maybe Alg) (Maybe String) (Maybe URI) (Maybe (NonEmpty Base64X509)) (Maybe Base64SHA1) (Maybe Base64SHA256) |
Eq JWK | |
Show JWK | |
ToJSON JWK | |
FromJSON JWK | |
Key JWK | |
type KeyGenParam JWK = KeyMaterialGenParam | |
type KeyContent JWK = KeyMaterial |
JWK §4. JSON Web Key Set (JWK Set) Format
"kty" (Key Type) Parameter Values
Octet sequence (symmetric key) key type (Required)
Parameters for Elliptic Curve Keys
data ECKeyParameters Source
Parameters for Elliptic Curve Keys
ECKeyParameters | |
|
Parameters for RSA Keys
data RSAPrivateKeyOthElem Source
"oth" (Other Primes Info) Parameter
data RSAPrivateKeyOptionalParameters Source
Optional parameters for RSA private keys
data RSAKeyParameters Source
Parameters for RSA Keys
Parameters for Symmetric Keys
data OctKeyParameters Source
Symmetric key parameters data.
data KeyMaterial Source
Key material sum type.