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

Safe HaskellNone
LanguageHaskell98

Crypto.JOSE.Header

Description

Types and functions for working with JOSE header parameters.

Synopsis

Documentation

unprotectedParams Source #

Arguments

:: HasParams a 
=> a 
-> Maybe Value

Object

parseCrit :: (Foldable t0, Foldable t1, Traversable t2, Traversable t3, Monad m) => t0 Text -> t1 Text -> Object -> t2 (t3 Text) -> m (t2 (t3 Text)) Source #

data HeaderParam a Source #

Constructors

HeaderParam Protection a 

Instances

headerRequired :: FromJSON a => Text -> Maybe Object -> Maybe Object -> Parser (HeaderParam a) Source #

Parse a required parameter that may be carried in either the protected or the unprotected header.

headerOptional :: FromJSON a => Text -> Maybe Object -> Maybe Object -> Parser (Maybe (HeaderParam a)) Source #

Parse an optional parameter that may be carried in either the protected or the unprotected header.

headerOptionalProtected :: FromJSON a => Text -> Maybe Object -> Maybe Object -> Parser (Maybe a) Source #

Parse an optional parameter that, if present, MUST be carried in the protected header.