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

Safe HaskellNone

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 whereSource

Data that can be parsed from a compact representation.

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

Decode a compact representation.

class ToCompact a whereSource

Data that can be converted to a compact representation.

encodeCompact :: ToCompact a => a -> Either Error ByteStringSource

Encode data to a compact representation.