Skip to content

Commit 52a5a06

Browse files
committed
- JavaDoc fixes/enhancements required to pass the build on later JDKs
1 parent 5f03b49 commit 52a5a06

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@ public final class StandardKeyAlgorithms implements Registry<String, KeyAlgorith
5252

5353
private static final StandardKeyAlgorithms INSTANCE = new StandardKeyAlgorithms();
5454

55+
/**
56+
* Returns this registry (a static singleton).
57+
*
58+
* @return this registry (a static singleton).
59+
*/
5560
public static StandardKeyAlgorithms get() { // named `get` to mimic java.util.function.Supplier
5661
return INSTANCE;
5762
}

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,11 @@ public final class StandardSecureDigestAlgorithms implements Registry<String, Se
4747

4848
private static final StandardSecureDigestAlgorithms INSTANCE = new StandardSecureDigestAlgorithms();
4949

50+
/**
51+
* Returns this registry (a static singleton).
52+
*
53+
* @return this registry (a static singleton).
54+
*/
5055
public static StandardSecureDigestAlgorithms get() { // named `get` to mimic java.util.function.Supplier
5156
return INSTANCE;
5257
}
@@ -168,7 +173,7 @@ public static StandardSecureDigestAlgorithms get() { // named `get` to mimic jav
168173
* {@code EdDSA} signature algorithm using Curve {@code Ed25519} as defined by
169174
* <a href="https://www.rfc-editor.org/rfc/rfc8037#section-3.1">RFC 8037, Section 3.1</a>. This algorithm
170175
* requires {@code Ed25519} Edwards Curve keys to create signatures. <b>This is a convenience alias for
171-
* {@link #EdDSA}</b> that defaults key generation to {@code Ed25519} keys.</p>
176+
* {@link #EdDSA}</b> that defaults key generation to {@code Ed25519} keys.
172177
* <p><b>This algorithm requires at least JDK 15 or a compatible JCA Provider (like BouncyCastle) in the runtime
173178
* classpath.</b></p>
174179
*/

0 commit comments

Comments
 (0)