Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 34 for setDomain (0.86 sec)

  1. src/main/java/jcifs/smb/SmbTransportImpl.java

                }
                throw new SmbException(resp.getErrorCode(), null);
            }
    
            if (req.getDomain() != null && getContext().getConfig().isDfsConvertToFQDN() && dr instanceof DfsReferralDataImpl) {
                ((DfsReferralDataImpl) dr).fixupDomain(req.getDomain());
            }
            if (log.isDebugEnabled()) {
                log.debug("Got referral " + dr);
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 69.8K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/RequestWithPathTest.java

        }
    
        @Test
        @DisplayName("Test getDomain returns correct domain")
        void testGetDomain() {
            // Test with mock
            String expectedDomain = "WORKGROUP";
            when(requestWithPath.getDomain()).thenReturn(expectedDomain);
    
            assertEquals(expectedDomain, requestWithPath.getDomain());
            verify(requestWithPath, times(1)).getDomain();
    
            // Test with implementation
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/ntlmssp/Type3MessageTest.java

            // When
            Type3Message parsed = new Type3Message(messageBytes);
    
            // Then
            // Note: getType() method does not exist, so we cannot compare message types
            assertEquals(original.getDomain(), parsed.getDomain());
            assertEquals(original.getUser(), parsed.getUser());
            assertEquals(original.getWorkstation(), parsed.getWorkstation());
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.3K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb1/smb1/NtlmContextTest.java

        }
    
        @Test
        void testInitSecContext_state1_type1Message() throws Exception {
            // Test the first step of context initialization (creating Type 1 message)
            when(mockAuth.getDomain()).thenReturn(domain);
            NtlmContext context = new NtlmContext(mockAuth, true);
            byte[] type1Token = context.initSecContext(new byte[0], 0, 0);
    
            assertNotNull(type1Token);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb1/smb1/NtlmPasswordAuthenticationTest.java

            assertEquals("user", auth.getUsername());
            assertEquals("password", auth.getPassword());
        }
    
        // Test constructor with user info string without password
        @Test
        void testConstructorWithUserInfoNoPassword() {
            NtlmPasswordAuthentication auth = new NtlmPasswordAuthentication("DOMAIN;user");
            assertEquals("DOMAIN", auth.getDomain());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.7K bytes
    - Viewed (0)
  6. src/test/java/jcifs/DfsReferralDataTest.java

        void testGetDomain() {
            // Given
            String domain = "TESTDOMAIN";
            when(mockReferralData.getDomain()).thenReturn(domain);
    
            // When
            String result = mockReferralData.getDomain();
    
            // Then
            assertEquals(domain, result);
            verify(mockReferralData).getDomain();
        }
    
        @Test
        @DisplayName("Should get share")
        void testGetShare() {
            // Given
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.1K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/dfs/DfsReferralDataInternalTest.java

                // Test with mock
                when(mockReferralData.getDomain()).thenReturn(domain);
                assertEquals(domain, mockReferralData.getDomain());
                verify(mockReferralData, times(1)).getDomain();
    
                // Test with concrete implementation
                String concreteDomain = concreteImplementation.getDomain();
                // Should be DOMAIN based on our initialization
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 28.2K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/smb1/NtlmContext.java

         */
        public byte[] initSecContext(byte[] token, final int offset, final int len) throws SmbException {
            switch (state) {
            case 1:
                final Type1Message msg1 = new Type1Message(ntlmsspFlags, auth.getDomain(), workstation);
                token = msg1.toByteArray();
    
                if (LogStream.level >= 4) {
                    log.println(msg1);
                    if (LogStream.level >= 6) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 7K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/RequestWithPath.java

         * Gets the server name.
         *
         * @return the server name
         */
        String getServer();
    
        /**
         * Gets the domain name.
         *
         * @return the domain name
         */
        String getDomain();
    
        /**
         * Gets the full UNC path.
         *
         * @return the full UNC path
         */
        String getFullUNCPath();
    
        /**
         * Sets the path to the resource.
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  10. src/main/java/jcifs/DfsReferralData.java

         * @return the server this referral points to
         */
        String getServer();
    
        /**
         * Get the domain this referral is for
         *
         * @return the domain this referral is for
         */
        String getDomain();
    
        /**
         * Get the share this referral points to
         *
         * @return the share this referral points to
         */
        String getShare();
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.5K bytes
    - Viewed (0)
Back to top