Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for getPassword (0.06 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/smb/SmbClient.java

            return new NtlmPasswordAuthenticator(smbAuthentication.getDomain() == null ? "" : smbAuthentication.getDomain(),
                    smbAuthentication.getUsername(), smbAuthentication.getPassword());
        }
    
        /**
         * Retrieves response data for the given URI.
         *
         * @param uri the URI to retrieve data from
         * @param includeContent whether to include content in the response
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Thu Sep 18 09:30:45 UTC 2025
    - 22.5K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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)
Back to top