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

Safe HaskellNone
LanguageHaskell98

Crypto.JOSE.Compact

Description

JWS, JWE and some related specifications provide for "compact" representations of certain types. This module defines classes and functions for working with such data.

Synopsis

Documentation

class FromCompact a where Source

Data that can be parsed from a compact representation.

decodeCompact :: FromCompact a => ByteString -> Either Error a Source

Decode a compact representation.

class ToCompact a where Source

Data that can be converted to a compact representation.

encodeCompact :: ToCompact a => a -> Either Error ByteString Source

Encode data to a compact representation.