- Sort Score
- Num 10 results
- Language All
Results 1 - 3 of 3 for getPasswordAsCharArray (0.08 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
src/main/java/jcifs/smb/NtlmPasswordAuthenticator.java
* it is supplied by the user at runtime. * * @return the password * @deprecated Use getPasswordAsCharArray() for better security */ @Deprecated public String getPassword() { checkNotClosed(); log.warn("getPassword() is deprecated and insecure. Use getPasswordAsCharArray() instead."); return this.password != null ? new String(this.password) : null; } /**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) -
src/test/java/jcifs/smb/JAASAuthenticatorTest.java
// Spy to override getPasswordAsCharArray() to return null JAASAuthenticator spyAuth = spy(new JAASAuthenticator("DOM", "user", null)); when(spyAuth.getPasswordAsCharArray()).thenReturn(null); PasswordCallback pc = new PasswordCallback("pass:", false); spyAuth.handle(new Callback[] { pc }); // Since getPasswordAsCharArray() returned null, handler should not set a passwordCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 9.9K bytes - Click Count (0) -
src/main/java/jcifs/smb/NtlmContext.java
String passwordString = null; if (this.auth.isGuest()) { passwordString = this.transportContext.getConfig().getGuestPassword(); } else { char[] passwordChars = this.auth.getPasswordAsCharArray(); if (passwordChars != null) { passwordString = new String(passwordChars); // Securely wipe the char array immediately after useCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 17.3K bytes - Click Count (1)