logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

jose-jws-fmt - Converts a JWS between serialization formats

Author

       Nathaniel McCallum npmccallum@redhat.com

Examples

       Attach payload to a detached JWS and emit JWS Compact Serialization:

           $ jose jws fmt -i msg.jws -I msg.txt -o compact.jws -c

       Detach payload from a JWS:

           $ jose jws fmt -i msg.jws -o detached.jws -O msg.txt

Name

       jose-jws-fmt - Converts a JWS between serialization formats

Options

-iJSON, --input=JSON : Parse JWS from JSON

       •   -iFILE, --input=FILE : Read JWS from FILE

       •   -i -, --input=-: Read JWS from standard input

       •   -IFILE, --detached=FILE : Read decoded payload from FILE

       •   -I -, --detached=- : Read decoded payload from standard input

       •   -oFILE, --output=FILE : Write JWS to FILE

       •   -o -, --output=- : Write JWS to stdout (default)

       •   -OFILE, --detach=FILE : Detach payload and decode to FILE

       •   -O -, --detach=- : Detach payload and decode to standard output

       •   -c, --compact : Output JWS using compact serialization

Overview

       The josejwsfmt command converts a JWS into alternative serialization formats. For example, it can:

        1. Attach payload to a detached JWS.

        2. Detach payload from a JWS.

        3. Convert JWS Compact Serialization to JWS JSON Serialization.

        4. Convert JWS JSON Serialization to JWS Compact Serialization.

See Also

jose-jws-sig(1) <jose-jws-sig.1.adoc>, jose-jws-ver(1) <jose-jws-ver.1.adoc>

                                                                                                 JOSE-JWS-FMT(1)

Synopsis

josejwsfmt -i JWS [-I PAY] [-o JWS] [-O PAY] [-c]

See Also