- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 11 for setPassword (0.14 sec)
-
fess-crawler/src/test/java/org/codelibs/fess/crawler/client/ftp/FtpClientTest.java
if (username != null) { UserManager userManager = factory.getUserManager(); BaseUser ftpUser = new BaseUser(); ftpUser.setName(username); ftpUser.setPassword(password); final File file = ResourceUtil.getResourceAsFile("test"); String path = file.getAbsolutePath(); ftpUser.setHomeDirectory(path); userManager.save(ftpUser);Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Sat Sep 06 04:15:37 UTC 2025 - 18K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/client/smb1/SmbAuthentication.java
} /** * Returns the password. * @return The password. */ public String getPassword() { return password; } /** * Sets the password. * @param password The password. */ public void setPassword(final String password) { this.password = password; } /** * Returns the domain.Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Thu Sep 18 09:30:45 UTC 2025 - 3.9K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/auth/chain/LdapChainTest.java
} // Helper method to create test user private User createTestUser(String username, String password) { User user = new User(); user.setName(username); user.setPassword(password); user.setRoles(new String[] { "role1", "role2" }); user.setGroups(new String[] { "group1", "group2" }); return user; } // Test LdapManager implementationRegistered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 9.3K bytes - Viewed (0) -
src/main/java/jcifs/smb/JAASAuthenticator.java
} } else if (cb instanceof PasswordCallback pc) { char[] passwordChars = this.getPasswordAsCharArray(); if (passwordChars != null) { pc.setPassword(passwordChars); } } } }Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 8.3K bytes - Viewed (1) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/client/smb/SmbClientTest.java
smbClient = container.getComponent("smbClient"); Map<String, Object> params = new HashMap<>(); SmbAuthentication auth1 = new SmbAuthentication(); auth1.setUsername("testuser1"); auth1.setPassword("test123"); SmbAuthentication[] auths = new SmbAuthentication[] { auth1 }; params.put("smbAuthentications", auths); smbClient.setInitParameterMap(params); smbClient.init();
Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Sat Sep 06 04:15:37 UTC 2025 - 13.7K bytes - Viewed (0) -
src/test/java/jcifs/smb/JAASAuthenticatorTest.java
assertEquals(orig.getUsername(), copy.getUsername()); assertEquals(orig.getUserDomain(), copy.getUserDomain()); assertEquals(orig.getPassword(), copy.getPassword()); // Test the cloning behavior with both null and non-null cached subjects if (first != null) { // If we got a valid subject, test that it's properly cached and cloned
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 9.9K bytes - Viewed (0) -
src/test/java/jcifs/smb/NtlmPasswordAuthenticatorTest.java
assertEquals(original.getUsername(), cloned.getUsername()); assertEquals(original.getPassword(), cloned.getPassword()); // Verify password arrays are independent original.secureWipePassword(); assertNull(original.getPassword()); assertEquals("ClonePass123!", cloned.getPassword()); } /** * Test authentication type guessing with secure password */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 23.3K bytes - Viewed (0) -
src/test/java/jcifs/smb/NtlmPasswordAuthenticatorSecurityTest.java
String retrievedPassword = authenticator.getPassword(); assertEquals("charArrayPassword", retrievedPassword, "Password should match"); // Modify original array - should not affect stored password passwordChars[0] = 'X'; String retrievedPassword2 = authenticator.getPassword();Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 8.5K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/sso/SsoAuthenticatorTest.java
this.username = username; this.password = password; } public String getUsername() { return username; } public String getPassword() { return password; } } // Test getLoginCredential method public void test_getLoginCredential_returnsValidCredential() { // Setup test credentialRegistered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 11K bytes - Viewed (1) -
src/main/java/jcifs/smb/NtlmPasswordAuthenticator.java
* * @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; } /**Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 30.3K bytes - Viewed (0)