Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for secureWipePassword (1.69 sec)

  1. src/test/java/jcifs/smb/NtlmPasswordAuthenticatorSecurityTest.java

            authenticator = new NtlmPasswordAuthenticator("DOMAIN", "username", "password");
    
            // Multiple wipes should not cause errors
            authenticator.secureWipePassword();
            authenticator.secureWipePassword();
            authenticator.secureWipePassword();
    
            assertNull(authenticator.getPassword(), "Password should remain null after multiple wipes");
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 8.5K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/NtlmPasswordAuthenticatorTest.java

            // Perform secure wipe
            auth.secureWipePassword();
    
            // Password should be null after wipe
            assertNull(auth.getPassword());
            assertNull(auth.getPasswordAsCharArray());
    
            // Calling wipe again should be safe
            auth.secureWipePassword();
            assertNull(auth.getPassword());
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 23.3K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/NtlmPasswordAuthenticator.java

        }
    
        /**
         * Securely wipes the password from memory
         */
        public void secureWipePassword() {
            if (this.password != null) {
                // Multi-pass secure wipe of password char array
                Arrays.fill(this.password, '\0');
                Arrays.fill(this.password, '\uFFFF');
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 30.3K bytes
    - Viewed (0)
Back to top