Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 33 for SmbSession (0.05 sec)

  1. src/main/java/jcifs/SmbSession.java

     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
     */
    package jcifs;
    
    /**
     * Opaque reference to a SMB session
     *
     * @author mbechler
     */
    public interface SmbSession extends AutoCloseable {
    
        /**
         * {@inheritDoc}
         *
         * @see java.lang.AutoCloseable#close()
         */
        @Override
        void close();
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/smb1/SmbSession.java

    import jcifs.smb1.Config;
    import jcifs.smb1.UniAddress;
    import jcifs.smb1.netbios.NbtAddress;
    import jcifs.smb1.util.LogStream;
    
    /**
     * The SmbSession class represents an SMB session established with a server.
     * It provides methods for authentication and session management.
     */
    public final class SmbSession {
    
        private static final String LOGON_SHARE = Config.getProperty("jcifs.smb1.smb.client.logonShare", null);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 20.7K bytes
    - Viewed (0)
  3. src/test/java/jcifs/SmbSessionTest.java

                            "unwrap method should return SmbSession or subtype");
                }, "unwrap(Class) method should be properly defined");
            }
    
            @Test
            @DisplayName("Should handle unwrap with SmbSession type")
            void shouldHandleUnwrapWithSmbSessionType() {
                SmbSession mockSession = mock(SmbSession.class);
                SmbSession testSession = mock(SmbSession.class);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb1/http/NtlmHttpFilter.java

                            chal = SmbSession.getChallengeForDomain();
                            ssn.setAttribute("NtlmHttpChal", chal);
                        }
                        dc = chal.dc;
                        challenge = chal.challenge;
                    } else {
                        dc = UniAddress.getByName(domainController, true);
                        challenge = SmbSession.getChallenge(dc);
                    }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb1/smb1/SmbRandomAccessFileTest.java

            smbTransport.rcv_buf_size = 4096;
            smbTransport.snd_buf_size = 4096;
    
            // Mock the session layer
            smbSession = mock(SmbSession.class);
            smbSession.transport = smbTransport;
    
            // Mock the tree layer
            smbTree = mock(SmbTree.class);
            smbTree.session = smbSession;
            smbTree.tree_num = 1;
    
            // Mock the SmbFile
            smbFile = mock(SmbFile.class);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb1/smb1/SmbSessionTest.java

            NtlmPasswordAuthentication a2 = new NtlmPasswordAuthentication("DOM", "user", "pwd");
            SmbSession s1 = new SmbSession(addr, 445, inet, 0, a1);
            SmbSession s2 = new SmbSession(addr, 445, inet, 0, a2);
            // same auth instance => matches
            assertTrue(s1.matches(a1));
            // different instance but equal content => matches
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/SmbTreeHandleInternalTest.java

        }
    
        @Test
        @DisplayName("getSession(): returns the mocked SmbSession instance")
        void getSession_returnsMock() {
            // Arrange
            SmbSession session = mock(SmbSession.class);
            when(handle.getSession()).thenReturn(session);
    
            // Act
            SmbSession result = handle.getSession();
    
            // Assert
            assertSame(session, result);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/SmbTransportInternalTest.java

    import org.junit.jupiter.params.provider.ValueSource;
    import org.mockito.ArgumentCaptor;
    import org.mockito.Mock;
    import org.mockito.Mockito;
    import org.mockito.junit.jupiter.MockitoExtension;
    
    import jcifs.SmbSession;
    
    /**
     * Tests for SmbTransportInternal interface using Mockito mocks to
     * exercise method contracts, checked exceptions, and interactions.
     */
    @ExtendWith(MockitoExtension.class)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/SmbTreeHandleInternal.java

     * License along with this library; if not, write to the Free Software
     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
     */
    package jcifs.smb;
    
    import jcifs.CIFSException;
    import jcifs.SmbSession;
    import jcifs.SmbTreeHandle;
    
    /**
     * Internal interface for SMB tree handle operations.
     *
     * This interface provides internal methods for managing
     * SMB tree connections and their lifecycle.
     *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/SmbTransportInternal.java

         * @return session
         */
        SmbSession getSmbSession(CIFSContext ctx);
    
        /**
         * Gets or creates an SMB session for the specified target.
         *
         * @param tf the CIFS context
         * @param targetHost the target host name
         * @param targetDomain the target domain
         * @return session
         */
        SmbSession getSmbSession(CIFSContext tf, String targetHost, String targetDomain);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.5K bytes
    - Viewed (0)
Back to top