From ff7e80d93f4f4a0fd68174c7d4032707234a740c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20M=C5=82odawski?= Date: Sat, 2 Nov 2024 12:21:46 +0100 Subject: [PATCH] Update PKCS11Example.java --- .../java/pl/mlodawski/security/example/PKCS11Example.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/pl/mlodawski/security/example/PKCS11Example.java b/src/main/java/pl/mlodawski/security/example/PKCS11Example.java index ce2c416..967d32b 100644 --- a/src/main/java/pl/mlodawski/security/example/PKCS11Example.java +++ b/src/main/java/pl/mlodawski/security/example/PKCS11Example.java @@ -103,7 +103,7 @@ public void onDeviceError(PKCS11Device device, Exception error) { } catch (Exception e) { System.out.println("Session error: " + e.getMessage()); selectedDevice = null; - PIN = null; // Czyścimy PIN w przypadku błędu sesji + PIN = null; } } catch (Exception e) { System.out.println("An error occurred: " + e.getMessage()); @@ -130,7 +130,7 @@ private boolean handleDeviceChange(PKCS11Manager manager) { continue; } - // Dodajemy wymuszenie podania PIN-u po zmianie urządzenia + if (!getPINFromUser()) { retryCount++; continue; @@ -347,4 +347,4 @@ public static void main(String[] args) { ); example.run(); } -} \ No newline at end of file +}