jose_jws behaviour (JOSE v1.11.12)

View Source

JSON Web Signature (JWS) See RFC 7515: https://tools.ietf.org/html/rfc7515 See RFC 7797: https://tools.ietf.org/html/rfc7797

Summary

Callbacks

from_map/1

-callback from_map(Fields) -> State when Fields :: map(), State :: any().

to_map/2

-callback to_map(State, Fields) -> Map when State :: any(), Fields :: map(), Map :: map().

Functions

compact(Map)

expand(Binary)

from(List)

from_binary(List)

from_file(File)

from_map(List)

generate_key(List)

merge(LeftJWS, RightMap)

peek(Signed)

peek_payload(SignedBinary)

peek_protected(SignedBinary)

peek_signature(SignedBinary)

sign(KeyList, PlainText, SignerList)

sign(KeyList, PlainText, Header, Signer)

signing_input(Payload, JWS)

signing_input(PlainText, Protected, Jose_jws)

to_binary(List)

to_file(File, JWS)

to_map(List)

verify(Key, SignedMap)

verify_strict(Key, Allow, SignedMap)