We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7667c0e commit abcb0e0Copy full SHA for abcb0e0
webauthn-server-core/src/main/java/com/yubico/webauthn/WebAuthnCodecs.java
@@ -151,13 +151,10 @@ static PublicKey importCosePublicKey(ByteArray key)
151
final int kty = cose.get(CBORObject.FromObject(1)).AsInt32();
152
switch (kty) {
153
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
156
return importCoseEdDsaPublicKey(cose);
157
case 2:
158
return importCoseEcdsaPublicKey(cose);
159
case 3:
160
- // COSE-JAVA supports RSA in v1.1.0 but not in v1.0.0
161
return importCoseRsaPublicKey(cose);
162
default:
163
throw new IllegalArgumentException("Unsupported key type: " + kty);
0 commit comments