Skip to content

Commit abcb0e0

Browse files
committed
Remove comments about COSE-Java workarounds
1 parent 7667c0e commit abcb0e0

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

webauthn-server-core/src/main/java/com/yubico/webauthn/WebAuthnCodecs.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,13 +151,10 @@ static PublicKey importCosePublicKey(ByteArray key)
151151
final int kty = cose.get(CBORObject.FromObject(1)).AsInt32();
152152
switch (kty) {
153153
case 1:
154-
// COSE-JAVA is hardcoded to ed25519-java provider ("EdDSA") which would require an
155-
// additional dependency to parse EdDSA keys via the OneKey constructor
156154
return importCoseEdDsaPublicKey(cose);
157155
case 2:
158156
return importCoseEcdsaPublicKey(cose);
159157
case 3:
160-
// COSE-JAVA supports RSA in v1.1.0 but not in v1.0.0
161158
return importCoseRsaPublicKey(cose);
162159
default:
163160
throw new IllegalArgumentException("Unsupported key type: " + kty);

0 commit comments

Comments
 (0)