jose-jws-fmt.1 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. .\" generated with Ronn/v0.7.3
  2. .\" http://github.com/rtomayko/ronn/tree/0.7.3
  3. .
  4. .TH "JOSE\-JWS\-FMT" "1" "June 2017" "" ""
  5. .
  6. .SH "NAME"
  7. \fBjose\-jws\-fmt\fR \- Converts a JWS between serialization formats
  8. .
  9. .SH "SYNOPSIS"
  10. \fBjose jws fmt\fR \-i JWS [\-I PAY] [\-o JWS] [\-O PAY] [\-c]
  11. .
  12. .SH "OVERVIEW"
  13. The \fBjose jws fmt\fR command converts a JWS into alternative serialization formats\. For example, it can:
  14. .
  15. .IP "1." 4
  16. Attach payload to a detached JWS\.
  17. .
  18. .IP "2." 4
  19. Detach payload from a JWS\.
  20. .
  21. .IP "3." 4
  22. Convert JWS Compact Serialization to JWS JSON Serialization\.
  23. .
  24. .IP "4." 4
  25. Convert JWS JSON Serialization to JWS Compact Serialization\.
  26. .
  27. .IP "" 0
  28. .
  29. .SH "OPTIONS"
  30. .
  31. .TP
  32. \fB\-i\fR \fIJSON\fR, \fB\-\-input\fR=\fIJSON\fR
  33. Parse JWS from JSON
  34. .
  35. .TP
  36. \fB\-i\fR \fIFILE\fR, \fB\-\-input\fR=\fIFILE\fR
  37. Read JWS from FILE
  38. .
  39. .TP
  40. \fB\-i\fR \-, \fB\-\-input\fR=\-
  41. Read JWS from standard input
  42. .
  43. .TP
  44. \fB\-I\fR \fIFILE\fR, \fB\-\-detached\fR=\fIFILE\fR
  45. Read decoded payload from FILE
  46. .
  47. .TP
  48. \fB\-I\fR \-, \fB\-\-detached\fR=\-
  49. Read decoded payload from standard input
  50. .
  51. .TP
  52. \fB\-o\fR \fIFILE\fR, \fB\-\-output\fR=\fIFILE\fR
  53. Write JWS to FILE
  54. .
  55. .TP
  56. \fB\-o\fR \-, \fB\-\-output\fR=\-
  57. Write JWS to stdout (default)
  58. .
  59. .TP
  60. \fB\-O\fR \fIFILE\fR, \fB\-\-detach\fR=\fIFILE\fR
  61. Detach payload and decode to FILE
  62. .
  63. .TP
  64. \fB\-O\fR \-, \fB\-\-detach\fR=\-
  65. Detach payload and decode to standard output
  66. .
  67. .TP
  68. \fB\-c\fR, \fB\-\-compact\fR
  69. Output JWS using compact serialization
  70. .
  71. .SH "EXAMPLES"
  72. Attach payload to a detached JWS and emit JWS Compact Serialization:
  73. .
  74. .IP "" 4
  75. .
  76. .nf
  77. $ jose jws fmt \-i msg\.jws \-I msg\.txt \-o compact\.jws \-c
  78. .
  79. .fi
  80. .
  81. .IP "" 0
  82. .
  83. .P
  84. Detach payload from a JWS:
  85. .
  86. .IP "" 4
  87. .
  88. .nf
  89. $ jose jws fmt \-i msg\.jws \-o detached\.jws \-O msg\.txt
  90. .
  91. .fi
  92. .
  93. .IP "" 0
  94. .
  95. .SH "AUTHOR"
  96. Nathaniel McCallum <npmccallum@redhat\.com>
  97. .
  98. .SH "SEE ALSO"
  99. \fBjose\-jws\-sig\fR(1), \fBjose\-jws\-ver\fR(1)