|
19 | 19 | import com.yubico.yubikit.core.application.CommandException;
|
20 | 20 | import com.yubico.yubikit.core.application.CommandState;
|
21 | 21 | import com.yubico.yubikit.core.fido.CtapException;
|
22 |
| -import com.yubico.yubikit.core.internal.Logger; |
23 | 22 | import com.yubico.yubikit.fido.ctap.ClientPin;
|
24 | 23 | import com.yubico.yubikit.fido.ctap.CredentialManagement;
|
25 | 24 | import com.yubico.yubikit.fido.ctap.Ctap2Session;
|
@@ -188,7 +187,6 @@ public PublicKeyCredential makeCredential(
|
188 | 187 | if (e.getCtapError() == CtapException.ERR_PIN_INVALID) {
|
189 | 188 | throw new PinInvalidClientError(e, clientPin.getPinRetries().getCount());
|
190 | 189 | }
|
191 |
| - Logger.debug(logger, "makeCredential CTAP error: {}", String.format("0x%02x", e.getCtapError())); |
192 | 190 | throw ClientError.wrapCtapException(e);
|
193 | 191 | }
|
194 | 192 | }
|
@@ -432,9 +430,8 @@ protected Ctap2Session.CredentialData ctapMakeCredential(
|
432 | 430 | pinToken = clientPin.getUvToken(ClientPin.PIN_PERMISSION_MC, rpId, null);
|
433 | 431 | pinUvAuthParam = clientPin.getPinUvAuth().authenticate(pinToken, clientDataHash);
|
434 | 432 | pinUvAuthProtocol = clientPin.getPinUvAuth().getVersion();
|
435 |
| - } else if (pinConfigured && Boolean.TRUE.equals(ctapOptions.get(OPTION_RESIDENT_KEY))) { |
436 |
| - // the authenticator supports pin and a discoverable credential creation has been |
437 |
| - // requested, but no PIN was provided |
| 433 | + } else if (pinConfigured) { |
| 434 | + // the authenticator supports pin but no PIN was provided |
438 | 435 | throw new PinRequiredClientError();
|
439 | 436 | }
|
440 | 437 |
|
@@ -555,7 +552,6 @@ protected List<Ctap2Session.AssertionData> ctapGetAssertions(
|
555 | 552 | if (e.getCtapError() == CtapException.ERR_PIN_INVALID) {
|
556 | 553 | throw new PinInvalidClientError(e, clientPin.getPinRetries().getCount());
|
557 | 554 | }
|
558 |
| - Logger.debug(logger, "getAssertion CTAP error: {}", String.format("0x%02x", e.getCtapError())); |
559 | 555 | throw ClientError.wrapCtapException(e);
|
560 | 556 | } finally {
|
561 | 557 | if (pinToken != null) {
|
|
0 commit comments