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 6d9129a commit 1e852bdCopy full SHA for 1e852bd
webauthn-server-core/src/main/java/com/yubico/webauthn/WebAuthnCodecs.java
@@ -125,10 +125,13 @@ static PublicKey importCosePublicKey(ByteArray key)
125
final int kty = cose.get(CBORObject.FromObject(1)).AsInt32();
126
switch (kty) {
127
case 1:
128
+ // COSE-JAVA is hardcoded to ed25519-java provider ("EdDSA") which would require an
129
+ // additional dependency to parse EdDSA keys via the OneKey constructor
130
return importCoseEdDsaPublicKey(cose);
131
case 2:
132
return importCoseP256PublicKey(cose);
133
case 3:
134
+ // COSE-JAVA supports RSA in v1.1.0 but not in v1.0.0
135
return importCoseRsaPublicKey(cose);
136
default:
137
throw new IllegalArgumentException("Unsupported key type: " + kty);
0 commit comments