Search Options

Results per page
Sort
Preferred Languages
Advance

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

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

            this.localAddr = localAddr;
            this.localPort = localPort;
        }
    
        synchronized SmbSession getSmbSession() {
            return getSmbSession(new NtlmPasswordAuthentication(null, null, null));
        }
    
        synchronized SmbSession getSmbSession(final NtlmPasswordAuthentication auth) {
            SmbSession ssn;
            long now;
    
            ListIterator iter = sessions.listIterator();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 31.8K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/SmbTreeConnection.java

                        final SmbTransportInternal trans = this.exclusiveTransport;
                        try (SmbSessionInternal smbSession = trans.getSmbSession(this.ctx, host, targetDomain).unwrap(SmbSessionInternal.class);
                                SmbTreeImpl uct = smbSession.getSmbTree(share, null).unwrap(SmbTreeImpl.class);
                                SmbTreeImpl ct = connectTree(loc, host, share, trans, uct, dr)) {
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 30.4K bytes
    - Viewed (1)
  7. src/main/java/jcifs/internal/smb2/multichannel/ChannelManager.java

    import java.util.concurrent.TimeUnit;
    import java.util.concurrent.atomic.AtomicInteger;
    
    import org.slf4j.Logger;
    import org.slf4j.LoggerFactory;
    
    import jcifs.CIFSContext;
    import jcifs.Configuration;
    import jcifs.SmbSession;
    import jcifs.SmbTransport;
    import jcifs.internal.CommonServerMessageBlock;
    import jcifs.internal.smb2.ioctl.QueryNetworkInterfaceInfoResponse;
    import jcifs.internal.smb2.ioctl.Smb2IoctlRequest;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 20K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/SmbSessionImplTest.java

        void testUnwrap() {
            SmbSessionImpl session = newSession();
    
            // Happy path: ask for SmbSession and SmbSessionInternal
            assertSame(session, session.unwrap(SmbSessionInternal.class));
            assertSame(session, session.unwrap(jcifs.SmbSession.class));
    
            // Edge: force incompatible class via raw type to trigger ClassCastException
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  9. docs/smb3-features/06-witness-protocol-design.md

        context.getConfig().setProperty("jcifs.smb.client.useWitness", "true");
        context.getConfig().setProperty("jcifs.smb.client.witnessServiceDiscovery", "true");
        
        SmbSession session = new SmbSession(context, transport);
        session.initializeWitnessSupport();
        
        // Should either find witness service or gracefully handle absence
        // No exception should be thrown
    }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 42K bytes
    - Viewed (0)
  10. docs/SMB3_IMPLEMENTATION_PLAN.md

    - [ ] Add persistent handle capability negotiation
    - [ ] Create handle cache for reconnection
    
    #### 2.3 Integration Points
    - Extend `SmbFile` with persistent handle support
    - Modify `SmbSession` for handle replay during reconnection
    - Update `Smb2CreateRequest/Response` for durable contexts
    
    ---
    
    ### Phase 3: Multi-Channel Support
    **Priority: MEDIUM** | **Estimated Effort: 5-6 weeks**
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 10.7K bytes
    - Viewed (0)
Back to top