Don't explicitly clear PIN when verifying admin PIN.
The PIN is cleared anyway when the Passphrase object holding the PIN is freed.
This commit is contained in:
parent
663fb1259f
commit
178e7856b2
|
@ -414,7 +414,6 @@ public class SecurityTokenConnection {
|
||||||
// delete secrets from memory
|
// delete secrets from memory
|
||||||
Arrays.fill(pin, (byte) 0);
|
Arrays.fill(pin, (byte) 0);
|
||||||
Arrays.fill(transformedPin, (byte) 0);
|
Arrays.fill(transformedPin, (byte) 0);
|
||||||
adminPin.removeFromMemory();
|
|
||||||
|
|
||||||
ResponseApdu response = communicate(verifyPw3Command);
|
ResponseApdu response = communicate(verifyPw3Command);
|
||||||
if (!response.isSuccess()) {
|
if (!response.isSuccess()) {
|
||||||
|
|
Loading…
Reference in a new issue