Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for SmbSession (0.09 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/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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. src/main/java/jcifs/smb/SmbSessionInternal.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.SmbTransport;
    import jcifs.SmbTree;
    
    /**
     * Internal SMB session interface providing extended session management capabilities.
     * Defines methods for internal session operations and state management.
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb2/rdma/RdmaTransport.java

        @Override
        public byte[] getServerEncryptionKey() {
            return delegate.getServerEncryptionKey();
        }
    
        @Override
        public SmbSession getSmbSession(CIFSContext ctx) {
            return delegate.getSmbSession(ctx);
        }
    
        @Override
        public SmbSession getSmbSession(CIFSContext tf, String targetHost, String targetDomain) {
            return delegate.getSmbSession(tf, targetHost, targetDomain);
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 05:11:12 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/http/NtlmServlet.java

    import jcifs.smb1.Config;
    import jcifs.smb1.UniAddress;
    import jcifs.smb1.netbios.NbtAddress;
    import jcifs.smb1.smb1.NtlmPasswordAuthentication;
    import jcifs.smb1.smb1.SmbAuthException;
    import jcifs.smb1.smb1.SmbSession;
    import jcifs.smb1.util.Base64;
    
    /**
     * This servlet may be used with pre-2.3 servlet containers
     * to protect content with NTLM HTTP Authentication. Servlets that
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/smb1/SmbComTreeConnectAndX.java

    class SmbComTreeConnectAndX extends AndXServerMessageBlock {
    
        private static final boolean DISABLE_PLAIN_TEXT_PASSWORDS = Config.getBoolean("jcifs.smb1.smb.client.disablePlainTextPasswords", true);
    
        private final SmbSession session;
        private final boolean disconnectTid = false;
        private final String service;
        private byte[] password;
        private int passwordLength;
        String path;
    
        /* batchLimits indecies
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 6.6K bytes
    - Viewed (0)
Back to top