Skip to content

Commit

Permalink
pre review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamVe committed Oct 13, 2023
1 parent 2d1c487 commit 47f8fe5
Show file tree
Hide file tree
Showing 5 changed files with 83 additions and 103 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2020-2022 Yubico.
* Copyright (C) 2020-2023 Yubico.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,17 +108,16 @@ public BasicWebAuthnClient(Ctap2Session session) throws IOException, CommandExce
// preference. MUST NOT contain duplicate values nor be empty if present.
int preferredPinUvAuthProtocol = pinUvAuthProtocols.get(0);

if (pinSupported && preferredPinUvAuthProtocol == 2) {
if (pinSupported && preferredPinUvAuthProtocol == PinUvAuthProtocolV2.VERSION) {
this.clientPin = new ClientPin(ctap, new PinUvAuthProtocolV2());
} else if (pinSupported && preferredPinUvAuthProtocol == 1) {
} else if (pinSupported && preferredPinUvAuthProtocol == PinUvAuthProtocolV1.VERSION) {
this.clientPin = new ClientPin(ctap, new PinUvAuthProtocolV1());
} else {
this.clientPin = new ClientPin(ctap, new PinUvAuthDummyProtocol());
}
} else {
this.clientPin = new ClientPin(ctap, new PinUvAuthDummyProtocol());
}

pinConfigured = pinSupported && clientPin;

Boolean uv = (Boolean) options.get(OPTION_USER_VERIFICATION);
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (C) 2020-2023 Yubico.
* Copyright (C) 2023 Yubico.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
Loading

0 comments on commit 47f8fe5

Please sign in to comment.