1JOSE-JWS-FMT(1)                                                JOSE-JWS-FMT(1)
2
3
4

NAME

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

SYNOPSIS

9       jose jws fmt -i JWS [-I PAY] [-o JWS] [-O PAY] [-c]
10

OVERVIEW

12       The  jose jws fmt command converts a JWS into alternative serialization
13       formats. For example, it can:
14
15       1.  Attach payload to a detached JWS.
16
17       2.  Detach payload from a JWS.
18
19       3.  Convert JWS Compact Serialization to JWS JSON Serialization.
20
21       4.  Convert JWS JSON Serialization to JWS Compact Serialization.
22
23
24

OPTIONS

26       -i JSON, --input=JSON
27              Parse JWS from JSON
28
29       -i FILE, --input=FILE
30              Read JWS from FILE
31
32       -i -, --input=-
33              Read JWS from standard input
34
35       -I FILE, --detached=FILE
36              Read decoded payload from FILE
37
38       -I -, --detached=-
39              Read decoded payload from standard input
40
41       -o FILE, --output=FILE
42              Write JWS to FILE
43
44       -o -, --output=-
45              Write JWS to stdout (default)
46
47       -O FILE, --detach=FILE
48              Detach payload and decode to FILE
49
50       -O -, --detach=-
51              Detach payload and decode to standard output
52
53       -c, --compact
54              Output JWS using compact serialization
55

EXAMPLES

57       Attach payload to a detached JWS and emit JWS Compact Serialization:
58
59
60
61           $ jose jws fmt -i msg.jws -I msg.txt -o compact.jws -c
62
63
64
65       Detach payload from a JWS:
66
67
68
69           $ jose jws fmt -i msg.jws -o detached.jws -O msg.txt
70
71
72

AUTHOR

74       Nathaniel McCallum <npmccallum@redhat.com>
75

SEE ALSO

77       jose-jws-sig(1), jose-jws-ver(1)
78
79
80
81                                   June 2017                   JOSE-JWS-FMT(1)
Impressum