JOSE

JOSE stands for JSON Object Signing and Encryption. It is a set of standards specified by the IETF. The oficial specifications are described below:

This module is the main entry point for decoding/encoding a JWT.

Summary

Decodes a JWT in binary form into a map of claims

Encodes a given JOSE term into a binary representation

Retrieves the current set JSON module

Sets the JSON module used for JSON encoding/decoding. Currently supports Poison and JSX

Functions

decode(binary)

Decodes a JWT in binary form into a map of claims.

encode(term)

Encodes a given JOSE term into a binary representation.

json_module()

Retrieves the current set JSON module.

json_module(module)

Sets the JSON module used for JSON encoding/decoding. Currently supports Poison and JSX.