Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for getUsername (0.17 sec)

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

            NtlmPasswordAuthenticator cloned = original.clone();
    
            // Verify cloned values
            assertEquals(original.getUserDomain(), cloned.getUserDomain());
            assertEquals(original.getUsername(), cloned.getUsername());
            assertEquals(original.getPassword(), cloned.getPassword());
    
            // Verify password arrays are independent
            original.secureWipePassword();
            assertNull(original.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)
  2. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/smb1/SmbAuthentication.java

        }
    
        /**
         * Returns the username.
         * @return The username.
         */
        public String getUsername() {
            return username;
        }
    
        /**
         * Sets the username.
         * @param username The username.
         */
        public void setUsername(final String username) {
            this.username = username;
        }
    
        /**
         * Returns the password.
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Thu Sep 18 09:30:45 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/JAASAuthenticatorTest.java

            // Clone and verify basic fields copied
            JAASAuthenticator copy = (JAASAuthenticator) orig.clone();
            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
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 9.9K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/NtlmPasswordAuthenticator.java

                String domB = this.getUserDomain() != null ? this.getUserDomain().toUpperCase() : null;
                return ntlm.type == this.type && Objects.equals(domA, domB) && ntlm.getUsername().equalsIgnoreCase(this.getUsername())
                        && constantTimeEquals(getPasswordAsCharArray(), ntlm.getPasswordAsCharArray());
            }
            return false;
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 30.3K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/JAASAuthenticator.java

                }
    
                if (cb instanceof NameCallback nc) {
                    String userDomain = this.getSpecifiedUserDomain();
                    if (this.getUsername() != null && userDomain != null) {
                        nc.setName(this.getUsername() + "@" + userDomain);
                    }
                } else if (cb instanceof PasswordCallback pc) {
                    char[] passwordChars = this.getPasswordAsCharArray();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 8.3K bytes
    - Viewed (1)
  6. src/main/java/jcifs/smb/AuthenticationProvider.java

                this.timestamp = System.currentTimeMillis();
                this.clientAddress = clientAddress;
                this.serverAddress = serverAddress;
            }
    
            public String getUsername() {
                return username;
            }
    
            public String getDomain() {
                return domain;
            }
    
            public AuthType getAuthType() {
                return authType;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 3.9K bytes
    - Viewed (1)
  7. src/main/java/jcifs/smb/NtlmContext.java

            if (this.auth instanceof NtlmNtHashAuthenticator) {
                return new Type3Message(this.transportContext, msg2, this.targetName, this.auth.getNTHash(), this.auth.getUserDomain(),
                        this.auth.getUsername(), this.workstation, this.ntlmsspFlags);
            }
    
            // Use secure password handling
            String passwordString = null;
            if (this.auth.isGuest()) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 17.3K bytes
    - Viewed (0)
  8. src/test/java/jcifs/http/NtlmServletTest.java

            verify(session).setAttribute(eq("NtlmHttpAuth"), authCaptor.capture());
    
            NtlmPasswordAuthentication capturedAuth = authCaptor.getValue();
            assertEquals("user", capturedAuth.getUsername());
            assertEquals("TEST_DOMAIN", capturedAuth.getUserDomain());
    
            verify(response, never()).setStatus(HttpServletResponse.SC_UNAUTHORIZED);
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  9. src/test/java/jcifs/http/NtlmSspTest.java

            // Verify
            assertNotNull(result, "Authentication result should not be null");
            assertEquals("DOMAIN", result.getUserDomain());
            assertEquals("user", result.getUsername());
            // Cannot verify challenge and responses as they are not exposed in the API
    
            // Verify that the response is not modified for a successful authentication
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 11.4K bytes
    - Viewed (1)
  10. 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
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Thu Sep 18 09:30:45 UTC 2025
    - 22.5K bytes
    - Viewed (0)
Back to top