diff --git a/NEWS b/NEWS index 3a5f6d0d3..2d1dd4877 100644 --- a/NEWS +++ b/NEWS @@ -2,6 +2,7 @@ New features: +* Added JavaDoc to `COSEAlgorithmIdentifier` constants. * (Experimental) Added a new suite of interfaces, starting with `CredentialRepositoryV2`. `RelyingParty` can now be configured with a `CredentialRepositoryV2` instance instead of a `CredentialRepository` diff --git a/webauthn-server-core/src/main/java/com/yubico/webauthn/RelyingParty.java b/webauthn-server-core/src/main/java/com/yubico/webauthn/RelyingParty.java index e7908df60..39e7c145e 100644 --- a/webauthn-server-core/src/main/java/com/yubico/webauthn/RelyingParty.java +++ b/webauthn-server-core/src/main/java/com/yubico/webauthn/RelyingParty.java @@ -210,13 +210,14 @@ public class RelyingParty { *
Note: This COSE identifier does not in general identify the full Ed25519 parameter suite,
+ * but is specialized to that meaning within the WebAuthn API.
+ *
+ * @since 1.4.0
+ * @see COSE Algorithms
+ * registry
+ * @see RFC 8032
+ * @see WebAuthn
+ * §5.8.5. Cryptographic Algorithm Identifier (typedef COSEAlgorithmIdentifier
+ * )
+ */
EdDSA(-8),
+
+ /**
+ * ECDSA with SHA-256 on the NIST P-256 curve.
+ *
+ *
Note: This COSE identifier does not in general restrict the curve to P-256, but is
+ * specialized to that meaning within the WebAuthn API.
+ *
+ * @since 0.3.0
+ * @see COSE Algorithms
+ * registry
+ * @see WebAuthn
+ * §5.8.5. Cryptographic Algorithm Identifier (typedef COSEAlgorithmIdentifier
+ * )
+ */
ES256(-7),
+
+ /**
+ * ECDSA with SHA-384 on the NIST P-384 curve.
+ *
+ *
Note: This COSE identifier does not in general restrict the curve to P-384, but is
+ * specialized to that meaning within the WebAuthn API.
+ *
+ * @since 2.1.0
+ * @see COSE Algorithms
+ * registry
+ * @see WebAuthn
+ * §5.8.5. Cryptographic Algorithm Identifier (typedef COSEAlgorithmIdentifier
+ * )
+ */
ES384(-35),
+
+ /**
+ * ECDSA with SHA-512 on the NIST P-521 curve.
+ *
+ *
Note: This COSE identifier does not in general restrict the curve to P-521, but is
+ * specialized to that meaning within the WebAuthn API.
+ *
+ * @since 2.1.0
+ * @see COSE Algorithms
+ * registry
+ * @see WebAuthn
+ * §5.8.5. Cryptographic Algorithm Identifier (typedef COSEAlgorithmIdentifier
+ * )
+ */
ES512(-36),
+
+ /**
+ * RSASSA-PKCS1-v1_5 using SHA-256.
+ *
+ * @since 0.3.0
+ * @see COSE Algorithms
+ * registry
+ */
RS256(-257),
+
+ /**
+ * RSASSA-PKCS1-v1_5 using SHA-384.
+ *
+ * @since 2.4.0
+ * @see COSE Algorithms
+ * registry
+ */
RS384(-258),
+
+ /**
+ * RSASSA-PKCS1-v1_5 using SHA-512.
+ *
+ * @since 2.4.0
+ * @see COSE Algorithms
+ * registry
+ */
RS512(-259),
+
+ /**
+ * RSASSA-PKCS1-v1_5 using SHA-1.
+ *
+ * @since 1.5.0
+ * @see COSE Algorithms
+ * registry
+ */
RS1(-65535);
@JsonValue @Getter private final long id;
@@ -65,6 +156,7 @@ public enum COSEAlgorithmIdentifier {
* COSEAlgorithmIdentifier}
* @return The {@link COSEAlgorithmIdentifier} instance whose {@link #getId() id} equals id
* , if any.
+ * @since 0.3.0
* @see §5.8.5.
* Cryptographic Algorithm Identifier (typedef COSEAlgorithmIdentifier)
*/
@@ -80,6 +172,7 @@ public static Optionalalg value.
* @throws IllegalArgumentException if publicKeyCose is not a well-formed COSE_Key.
+ * @since 2.1.0
*/
public static Optional