Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 33 for SmbSession (0.48 sec)

  1. 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)
  2. 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)
  3. 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)
  4. src/test/java/jcifs/smb1/smb1/SmbComSessionSetupAndXTest.java

    import org.junit.jupiter.api.BeforeEach;
    import org.junit.jupiter.api.Test;
    import org.mockito.Mock;
    import org.mockito.MockitoAnnotations;
    
    class SmbComSessionSetupAndXTest {
    
        @Mock
        private SmbSession mockSession;
        @Mock
        private SmbTransport mockTransport;
        @Mock
        private ServerMessageBlock mockAndx;
        @Mock
        private NtlmPasswordAuthentication mockAuth;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  5. docs/smb3-features/03-multi-channel-design.md

    import java.util.*;
    import java.util.concurrent.*;
    import java.util.concurrent.atomic.AtomicInteger;
    
    public class ChannelManager {
        private final CIFSContext context;
        private final SmbSession session;
        private final Map<String, ChannelInfo> channels;
        private final List<NetworkInterfaceInfo> localInterfaces;
        private final List<NetworkInterfaceInfo> remoteInterfaces;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 39.6K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/SmbTransportPoolImpl.java

                    .unwrap(SmbTransportInternal.class);
                    SmbSessionInternal smbSession = smbTransport.getSmbSession(tf, dc.getHostName(), null).unwrap(SmbSessionInternal.class);
                    SmbTreeInternal tree = smbSession.getSmbTree(tf.getConfig().getLogonShare(), null).unwrap(SmbTreeInternal.class)) {
                tree.connectLogon(tf);
            }
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 33.4K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/SmbSessionImpl.java

        public boolean isInUse() {
            return this.usageCount.get() > 0;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.SmbSession#unwrap(java.lang.Class)
         */
        @SuppressWarnings("unchecked")
        @Override
        public <T extends SmbSession> T unwrap(Class<T> type) {
            if (type.isAssignableFrom(this.getClass())) {
                return (T) this;
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 68.9K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/Kerb5Authenticator.java

         *
         * {@inheritDoc}
         *
         * @see jcifs.smb.NtlmPasswordAuthenticator#equals(java.lang.Object)
         */
        @Override
        public boolean equals(Object other) {
            // this method is called from SmbSession
            if (other instanceof Kerb5Authenticator) {
                return Objects.equals(this.getSubject(), ((Kerb5Authenticator) other).getSubject());
            }
    
            return false;
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 13.2K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/http/NetworkExplorer.java

    import jcifs.smb1.smb1.NtlmPasswordAuthentication;
    import jcifs.smb1.smb1.SmbAuthException;
    import jcifs.smb1.smb1.SmbException;
    import jcifs.smb1.smb1.SmbFile;
    import jcifs.smb1.smb1.SmbFileInputStream;
    import jcifs.smb1.smb1.SmbSession;
    import jcifs.smb1.util.Base64;
    import jcifs.smb1.util.LogStream;
    import jcifs.smb1.util.MimeMap;
    
    /**
     * This servlet may be used to "browse" the entire hierarchy of resources
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 22.6K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb1/smb1/SmbTreeTest.java

    import org.junit.jupiter.api.BeforeEach;
    import org.junit.jupiter.api.Test;
    import org.mockito.Mock;
    import org.mockito.MockitoAnnotations;
    
    class SmbTreeTest {
    
        @Mock
        private SmbSession session;
    
        @Mock
        private SmbTransport transport;
    
        @BeforeEach
        void setUp() {
            MockitoAnnotations.openMocks(this);
            // Setup transport fields that are accessed directly
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 10.2K bytes
    - Viewed (0)
Back to top