Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 3 of 3 for secureWipePassword (0.09 seconds)

  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");
        }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 8.5K bytes
    - Click Count (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());
        }
    
        /**
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 23.3K bytes
    - Click Count (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');
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 30.3K bytes
    - Click Count (0)
Back to Top