@@ -101,12 +101,25 @@ public interface JwtParserBuilder extends Builder<JwtParser> {
101
101
* the parser encounters a Protected JWT that {@link ProtectedHeader#getCritical() requires} extensions, and
102
102
* those extensions' header names are not specified via this method, the parser will reject that JWT.
103
103
*
104
+ * <p>The collection's {@link Conjunctor#and() and()} method returns to the builder for continued parser
105
+ * configuration, for example:</p>
106
+ * <blockquote><pre>
107
+ * parserBuilder.critical().add("headerName")<b>.{@link Conjunctor#and() and()} // etc...</b></pre></blockquote>
108
+ *
104
109
* <p><b>Extension Behavior</b></p>
105
110
*
106
111
* <p>The {@code critical} collection only identifies header parameter names that are used in extensions supported
107
112
* by the application. <b>Application developers, <em>not JJWT</em>, MUST perform the associated extension behavior
108
113
* using the parsed JWT</b>.</p>
109
114
*
115
+ * <p><b>Continued Parser Configuration</b></p>
116
+ * <p>When finished, use the collection's
117
+ * {@link Conjunctor#and() and()} method to continue parser configuration, for example:
118
+ * <blockquote><pre>
119
+ * Jwts.parser()
120
+ * .critical().add("headerName").<b>{@link Conjunctor#and() and()} // return parent</b>
121
+ * // resume parser configuration...</pre></blockquote>
122
+ *
110
123
* @return the {@link NestedCollection} to use for {@code crit} configuration.
111
124
* @see ProtectedHeader#getCritical()
112
125
* @since 0.12.0
@@ -557,7 +570,7 @@ public interface JwtParserBuilder extends Builder<JwtParser> {
557
570
* <p>The collection's {@link Conjunctor#and() and()} method returns to the builder for continued parser
558
571
* configuration, for example:</p>
559
572
* <blockquote><pre>
560
- * parserBuilder.enc().add(anAeadAlgorithm).{@link Conjunctor#and() and()} // etc...</pre></blockquote>
573
+ * parserBuilder.enc().add(anAeadAlgorithm)<b> .{@link Conjunctor#and() and()} // etc...</b> </pre></blockquote>
561
574
*
562
575
* <p><b>Standard Algorithms and Overrides</b></p>
563
576
*
@@ -597,7 +610,7 @@ public interface JwtParserBuilder extends Builder<JwtParser> {
597
610
* <p>The collection's {@link Conjunctor#and() and()} method returns to the builder for continued parser
598
611
* configuration, for example:</p>
599
612
* <blockquote><pre>
600
- * parserBuilder.key().add(aKeyAlgorithm).{@link Conjunctor#and() and()} // etc...</pre></blockquote>
613
+ * parserBuilder.key().add(aKeyAlgorithm)<b> .{@link Conjunctor#and() and()} // etc...</b> </pre></blockquote>
601
614
*
602
615
* <p><b>Standard Algorithms and Overrides</b></p>
603
616
*
@@ -639,7 +652,7 @@ public interface JwtParserBuilder extends Builder<JwtParser> {
639
652
* <p>The collection's {@link Conjunctor#and() and()} method returns to the builder for continued parser
640
653
* configuration, for example:</p>
641
654
* <blockquote><pre>
642
- * parserBuilder.sig().add(aSignatureAlgorithm).{@link Conjunctor#and() and()} // etc...</pre></blockquote>
655
+ * parserBuilder.sig().add(aSignatureAlgorithm)<b> .{@link Conjunctor#and() and()} // etc...</b> </pre></blockquote>
643
656
*
644
657
* <p><b>Standard Algorithms and Overrides</b></p>
645
658
*
@@ -680,7 +693,7 @@ public interface JwtParserBuilder extends Builder<JwtParser> {
680
693
* <p>The collection's {@link Conjunctor#and() and()} method returns to the builder for continued parser
681
694
* configuration, for example:</p>
682
695
* <blockquote><pre>
683
- * parserBuilder.zip().add(aCompressionAlgorithm).{@link Conjunctor#and() and()} // etc...</pre></blockquote>
696
+ * parserBuilder.zip().add(aCompressionAlgorithm)<b> .{@link Conjunctor#and() and()} // etc...</b> </pre></blockquote>
684
697
*
685
698
* <p><b>Standard Algorithms and Overrides</b></p>
686
699
*
0 commit comments