Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for setDomain (0.07 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. src/main/java/jcifs/smb/AuthenticationProvider.java

                this.serverAddress = serverAddress;
            }
    
            public String getUsername() {
                return username;
            }
    
            public String getDomain() {
                return domain;
            }
    
            public AuthType getAuthType() {
                return authType;
            }
    
            public long getTimestamp() {
                return timestamp;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  8. src/main/java/jcifs/http/NtlmSsp.java

                    byte[] ntResponse = type3.getNTResponse();
                    if (ntResponse == null) {
                        ntResponse = new byte[0];
                    }
                    return new NtlmPasswordAuthentication(type3.getDomain(), type3.getUser(), challenge, lmResponse, ntResponse);
                }
            } else {
                resp.setHeader("WWW-Authenticate", "NTLM");
            }
            resp.setStatus(HttpServletResponse.SC_UNAUTHORIZED);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/http/NtlmSsp.java

                    byte[] ntResponse = type3.getNTResponse();
                    if (ntResponse == null) {
                        ntResponse = new byte[0];
                    }
                    return new NtlmPasswordAuthentication(type3.getDomain(), type3.getUser(), challenge, lmResponse, ntResponse);
                }
            } else {
                resp.setHeader("WWW-Authenticate", "NTLM");
            }
            resp.setStatus(HttpServletResponse.SC_UNAUTHORIZED);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb1/smb1/SmbComSessionSetupAndXTest.java

            when(mockAuth.getUnicodeHash(any(byte[].class))).thenReturn(new byte[24]);
            when(mockAuth.getName()).thenReturn("testuser");
            when(mockAuth.getDomain()).thenReturn("TESTDOMAIN");
    
            setupAndX = new SmbComSessionSetupAndX(mockSession, mockAndx, mockAuth);
        }
    
        @Test
        void testConstructor() {
            assertNotNull(setupAndX);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.5K bytes
    - Viewed (0)
Back to top