Skip to content

Commit ff7e80d

Browse files
authored
Update PKCS11Example.java
1 parent bac7e29 commit ff7e80d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/pl/mlodawski/security/example/PKCS11Example.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public void onDeviceError(PKCS11Device device, Exception error) {
103103
} catch (Exception e) {
104104
System.out.println("Session error: " + e.getMessage());
105105
selectedDevice = null;
106-
PIN = null; // Czyścimy PIN w przypadku błędu sesji
106+
PIN = null;
107107
}
108108
} catch (Exception e) {
109109
System.out.println("An error occurred: " + e.getMessage());
@@ -130,7 +130,7 @@ private boolean handleDeviceChange(PKCS11Manager manager) {
130130
continue;
131131
}
132132

133-
// Dodajemy wymuszenie podania PIN-u po zmianie urządzenia
133+
134134
if (!getPINFromUser()) {
135135
retryCount++;
136136
continue;
@@ -347,4 +347,4 @@ public static void main(String[] args) {
347347
);
348348
example.run();
349349
}
350-
}
350+
}

0 commit comments

Comments
 (0)