Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 22 for getUserDomain (0.11 sec)

  1. 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
            if (first != null) {
    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/main/java/jcifs/smb/Kerb5Authenticator.java

         * {@inheritDoc}
         *
         * @see java.lang.Object#hashCode()
         */
        @Override
        public int hashCode() {
            return super.hashCode();
        }
    
        @Override
        public String getUserDomain() {
            if (this.realm == null && this.getSubject() != null) {
                Set<Principal> pr = this.getSubject().getPrincipals();
                for (Iterator<Principal> ite = pr.iterator(); ite.hasNext();) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 13.2K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/DfsImpl.java

        private Map<String, Map<String, CacheEntry<DfsReferralDataInternal>>> getTrustedDomains(final CIFSContext tf) throws SmbAuthException {
            if (tf.getConfig().isDfsDisabled() || tf.getCredentials().getUserDomain() == null
                    || tf.getCredentials().getUserDomain().isEmpty()) {
                return null;
            }
    
            if (this._domains != null && System.currentTimeMillis() > this._domains.expiration) {
                this._domains = null;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 29.7K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb1/com/SmbComSessionSetupAndXTest.java

            when(auth.isAnonymous()).thenReturn(true);
            when(auth.isGuest()).thenReturn(true);
            when(auth.getUsername()).thenReturn("guest");
            when(auth.getUserDomain()).thenReturn("dom");
    
            // Construct
            SmbComSessionSetupAndX obj = new SmbComSessionSetupAndX(mockContext, mockNegotiate, mockAndX, auth);
            String accountName = (String) getField(obj, "accountName");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SmbRenewableCredentialsTest.java

            }
    
            @Override
            public boolean isAnonymous() {
                return false; // not anonymous for test purposes
            }
    
            @Override
            public String getUserDomain() {
                return "TESTDOMAIN"; // test domain for test purposes
            }
    
            @Override
            public <T extends Credentials> T unwrap(Class<T> type) {
                if (type.isInstance(this)) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7K bytes
    - Viewed (0)
  6. src/test/java/jcifs/http/NtlmServletTest.java

            NtlmPasswordAuthentication capturedAuth = authCaptor.getValue();
            assertEquals("user", capturedAuth.getUsername());
            assertEquals("TEST_DOMAIN", capturedAuth.getUserDomain());
    
            verify(response, never()).setStatus(HttpServletResponse.SC_UNAUTHORIZED);
        }
    
        /**
         * Test the service method with an existing valid session.
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  7. src/main/java/jcifs/http/NtlmServlet.java

                    return;
                }
                final HttpSession ssn = request.getSession();
                ssn.setAttribute("NtlmHttpAuth", ntlm);
                ssn.setAttribute("ntlmdomain", ntlm.getUserDomain());
                ssn.setAttribute("ntlmuser", ntlm.getUsername());
            } else {
                final HttpSession ssn = request.getSession(false);
                if (ssn == null || ssn.getAttribute("NtlmHttpAuth") == null) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 8.1K bytes
    - Viewed (1)
  8. src/test/java/jcifs/smb/SmbFileTest.java

            when(mockConfig.getPid()).thenReturn(1234);
            when(mockCifsContext.getConfig()).thenReturn(mockConfig);
    
            // Mock credentials to prevent NPE
            when(mockCredentials.getUserDomain()).thenReturn("DOMAIN");
            when(mockCifsContext.getCredentials()).thenReturn(mockCredentials);
    
            // Create URL handler
            Handler urlHandler = new jcifs.smb.Handler(mockCifsContext);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.8K 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
    
    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. src/test/java/jcifs/smb/SmbTreeConnectionTest.java

            when(config.isTraceResourceUsage()).thenReturn(false);
            // Mock credentials to avoid NullPointerException
            when(ctx.getCredentials()).thenReturn(credentials);
            when(credentials.getUserDomain()).thenReturn("DOMAIN");
            // Mock DFS resolver
            when(ctx.getDfs()).thenReturn(dfsResolver);
        }
    
        // Helper to set private field 'tree'
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 13K bytes
    - Viewed (0)
Back to top