Skip to content

Commit 2f400ff

Browse files
committed
JavaDoc cleanup
1 parent c2cf209 commit 2f400ff

File tree

6 files changed

+9
-3
lines changed

6 files changed

+9
-3
lines changed

api/src/main/java/io/jsonwebtoken/security/AeadAlgorithm.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
* Per <a href="https://www.rfc-editor.org/rfc/rfc7516.html#section-4.1.2">JWE RFC 7516, Section 4.1.2</a>, all JWEs
2727
* <em>MUST</em> use an AEAD algorithm to encrypt or decrypt the JWE payload/content. Consequently, all
2828
* <a href="https://www.rfc-editor.org/rfc/rfc7518.html#section-5.1">JWA &quot;enc&quot; algorithms</a> are AEAD
29-
* algorithms, and they are accessible as concrete instances via {@link Jwe.alg}.
29+
* algorithms, and they are accessible as concrete instances via {@link io.jsonwebtoken.Jwe.alg Jwe.alg}.
3030
*
3131
* <p><b>&quot;enc&quot; identifier</b></p>
3232
*
@@ -57,7 +57,7 @@
5757
* <p>The resulting {@code key} is guaranteed to have the correct algorithm parameters and strength/length necessary for
5858
* that exact {@code aeadAlgorithm} instance.</p>
5959
*
60-
* @see Jwe.alg
60+
* @see io.jsonwebtoken.Jwe.alg Jwe.alg
6161
* @see Identifiable#getId()
6262
* @see KeyLengthSupplier
6363
* @see KeyBuilderSupplier

api/src/main/java/io/jsonwebtoken/security/AeadResult.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,9 @@ public interface AeadResult extends DigestSupplier, IvSupplier {
5555
* Returns a new {@link AeadResult} with the specified {@link OutputStream} that will be used to write the
5656
* resulting ciphertext during encryption or plaintext during decryption.
5757
*
58+
* @param out the {@link OutputStream} that will be used to write the resulting ciphertext during encryption
5859
* @return a new {@link AeadResult} with the specified {@link OutputStream} that will be used to write the
59-
* resulting ciphertext during encryption or plaintext during decryption.
60+
* resulting ciphertext during encryption.
6061
* @since JJWT_RELEASE_VERSION
6162
*/
6263
static AeadResult with(OutputStream out) {

api/src/main/java/io/jsonwebtoken/security/DecryptAeadRequest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ interface Params<M extends Params<M>> extends AeadRequest.Params<M> {
3838
* Sets the required initialization vector used during AEAD decryption.
3939
*
4040
* @param iv the required initialization vector used during AEAD decryption.
41+
* @return the instance for method chaining.
4142
*/
4243
M iv(byte[] iv);
4344

api/src/main/java/io/jsonwebtoken/security/Request.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ interface Builder<T> extends io.jsonwebtoken.lang.Builder<Request<T>>, Params<T,
105105
/**
106106
* Returns a new {@link Request.Builder} for creating immutable {@link Request}s.
107107
*
108+
* @param <T> the type of payload in the request.
108109
* @return a new {@link Request.Builder} for creating immutable {@link Request}s.
109110
* @since JJWT_RELEASE_VERSION
110111
*/

api/src/main/java/io/jsonwebtoken/security/SecureRequest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ interface Builder<T, K extends Key> extends Params<T, K, Builder<T, K>>, io.json
6060
* Returns a new {@link SecureRequest.Builder} for creating {@link SecureRequest}s used to compute a mac or
6161
* signature via {@link SecureDigestAlgorithm#digest(Request)}.
6262
*
63+
* @param <T> the type of payload in the request.
64+
* @param <K> the type of key used by the algorithm to compute the digest.
6365
* @return a new {@link SecureRequest.Builder} for creating {@link SecureRequest}s used to compute a mac or
6466
* signature via {@link SecureDigestAlgorithm#digest(Request)}.
6567
* @since JJWT_RELEASE_VERSION

api/src/main/java/io/jsonwebtoken/security/VerifySecureDigestRequest.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ interface Builder<K extends Key> extends Params<K, Builder<K>>, io.jsonwebtoken.
5858
* Returns a new {@link VerifySecureDigestRequest.Builder} for creating {@link VerifySecureDigestRequest}s used
5959
* to verify a mac or signature via {@link SecureDigestAlgorithm#verify(VerifyDigestRequest)}.
6060
*
61+
* @param <K> type of key used to verify the digest.
6162
* @return a new {@link VerifySecureDigestRequest.Builder} for creating {@link VerifySecureDigestRequest}s used
6263
* to verify a mac or signature via {@link SecureDigestAlgorithm#verify(VerifyDigestRequest)}.
6364
* @since JJWT_RELEASE_VERSION

0 commit comments

Comments
 (0)