Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for getDefaultDomain (0.08 sec)

  1. src/test/java/jcifs/config/PropertyConfigurationTest.java

            // Then
            assertNotNull(config);
            assertEquals("testuser", config.getDefaultUsername());
            assertEquals("testpass", config.getDefaultPassword());
            assertEquals("testdomain", config.getDefaultDomain());
        }
    
        @Test
        @DisplayName("Should handle null properties gracefully")
        void testNullProperties() throws CIFSException {
            // PropertyConfiguration doesn't handle null properties
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/ntlmssp/Type1Message.java

        }
    
        /**
         * Creates a Type-1 message using default values from the current
         * environment.
         */
        public Type1Message() {
            this(getDefaultFlags(), getDefaultDomain(), getDefaultWorkstation());
        }
    
        /**
         * Creates a Type-1 message with the specified parameters.
         *
         * @param flags The flags to apply to this message.
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  3. src/main/java/jcifs/ntlmssp/Type2Message.java

        private static final Map<String, byte[]> TARGET_INFO_CACHE = new HashMap<>();
    
        private static byte[] getDefaultTargetInfo(final CIFSContext tc) {
            final String domain = tc.getConfig().getDefaultDomain();
            byte[] ti = TARGET_INFO_CACHE.get(domain);
            if (ti != null) {
                return ti;
            }
    
            ti = makeTargetInfo(tc, domain);
            TARGET_INFO_CACHE.put(domain, ti);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 14.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/context/BaseContextTest.java

            // Setup mock configuration with required methods
            when(mockConfig.getDefaultUsername()).thenReturn(null);
            when(mockConfig.getDefaultPassword()).thenReturn(null);
            when(mockConfig.getDefaultDomain()).thenReturn(null);
            when(mockConfig.getBufferCacheSize()).thenReturn(16);
            when(mockConfig.getMaximumBufferSize()).thenReturn(65536);
    
            context = new BaseContext(mockConfig);
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/ntlmssp/Type2Message.java

            this(getDefaultFlags(type1), challenge,
                    type1 != null && target == null && type1.getFlag(NTLMSSP_REQUEST_TARGET) ? getDefaultDomain() : target);
        }
    
        /**
         * Creates a Type-2 message with the specified parameters.
         *
         * @param flags The flags to apply to this message.
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 13K bytes
    - Viewed (0)
  6. src/test/java/jcifs/ConfigurationTest.java

                mockConfig.getLocalPort();
                mockConfig.getLocalAddr();
                mockConfig.getNetbiosHostname();
                mockConfig.getLogonShare();
                mockConfig.getDefaultDomain();
                mockConfig.getDefaultUsername();
                mockConfig.getDefaultPassword();
                mockConfig.getLanManCompatibility();
                mockConfig.isAllowNTLMFallback();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  7. src/test/java/jcifs/ntlmssp/Type2MessageTest.java

            when(mockNameServiceClient.getLocalHost()).thenReturn(mockHost);
            when(mockHost.getHostName()).thenReturn(TEST_HOSTNAME);
            when(mockConfig.getDefaultDomain()).thenReturn(TEST_DOMAIN);
            when(mockConfig.isUseUnicode()).thenReturn(true);
    
            return mockContext;
        }
    
        @Nested
        @DisplayName("Constructor Tests")
        class ConstructorTests {
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 38.9K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/NtlmPasswordAuthentication.java

         * @param userInfo the user information string in the format "domain;user:pass"
         */
        public NtlmPasswordAuthentication(final CIFSContext tc, final String userInfo) {
            super(userInfo, tc.getConfig().getDefaultDomain(),
                    tc.getConfig().getDefaultUsername() != null ? tc.getConfig().getDefaultUsername() : "GUEST",
                    tc.getConfig().getDefaultPassword() != null ? tc.getConfig().getDefaultPassword() : "");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  9. src/test/java/jcifs/http/NtlmServletTest.java

            // Setup CIFSContext configuration mock
            lenient().when(cifsContext.getConfig()).thenReturn(configuration);
            lenient().when(configuration.getDefaultDomain()).thenReturn("TEST_DOMAIN");
        }
    
        /**
         * Test the init method of the servlet.
         * Verifies that servlet is correctly initialized with parameters from ServletConfig.
         * @throws ServletException
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  10. src/main/java/jcifs/config/DelegatingConfiguration.java

            return this.delegate.getLogonShare();
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.Configuration#getDefaultDomain()
         */
        @Override
        public String getDefaultDomain() {
            return this.delegate.getDefaultDomain();
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.Configuration#getDefaultUsername()
         */
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 24.1K bytes
    - Viewed (0)
Back to top