Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 247 for session6 (3.67 sec)

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

        /**
         * Unwraps this session to the specified type, allowing access to implementation-specific functionality.
         *
         * @param <T> the type to unwrap to
         * @param type the class of the type to unwrap to
         * @return session instance with the given type
         */
        <T extends SmbSession> T unwrap(Class<T> type);
    
        /**
         * Returns the CIFS context that this session is attached to.
         *
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SimpleMemoryManagementTest.java

            // Session starts with usage count > 0, so acquire/release cycles maintain usage
            assertTrue(session.isInUse(), "Session should be in use initially");
    
            // Test acquire/release cycles (session remains in use due to initial transport acquire)
            for (int i = 0; i < 3; i++) {
                session.acquire();
                assertTrue(session.isInUse(), "Session should be in use after acquire " + i);
    
                session.release();
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/SmbTreeImplTest.java

            when(session.acquire()).thenReturn(session);
            when(config.isTraceResourceUsage()).thenReturn(false);
            when(context.getConfig()).thenReturn(config);
            when(session.isConnected()).thenReturn(true);
        }
    
        // Test case for the constructor of SmbTreeImpl
        @Test
        void testSmbTreeImplConstructor() {
            SmbTreeImpl tree = new SmbTreeImpl(session, "SHARE", "A:");
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SmbSessionImplSecurityTest.java

            // Given
            SmbSessionImpl session = new SmbSessionImpl(mockContext, "testhost", "testdomain", mockTransport);
    
            // Add some trees
            SmbTreeImpl tree1 = session.getSmbTree("share1", null);
            SmbTreeImpl tree2 = session.getSmbTree("share2", null);
            assertNotNull(tree1);
            assertNotNull(tree2);
    
            // When - Release session to trigger cleanup
            session.release();
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 11K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SmbSessionInternalTest.java

            byte[] key = new byte[] { 10, 20 };
            when(session.getSessionKey()).thenReturn(key, new byte[0], null);
    
            assertArrayEquals(key, session.getSessionKey());
            assertArrayEquals(new byte[0], session.getSessionKey());
            assertNull(session.getSessionKey());
            verify(session, times(3)).getSessionKey();
        }
    
        // Error propagation: getSessionKey throws CIFSException
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  6. src/main/java/jcifs/config/BaseConfiguration.java

        /** Connection timeout in milliseconds for establishing SMB connections */
        protected int smbConnectionTimeout = SmbConstants.DEFAULT_CONN_TIMEOUT;
        /** Session timeout in milliseconds for SMB sessions */
        protected int smbSessionTimeout = SmbConstants.DEFAULT_SO_TIMEOUT;
        /** Whether idle timeout is disabled for connections */
        protected boolean idleTimeoutDisabled = false;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 36.5K bytes
    - Viewed (0)
  7. src/main/java/jcifs/Configuration.java

         * @return whether multi-channel is enabled
         */
        boolean isUseMultiChannel();
    
        /**
         * Maximum number of channels per session
         *
         * Property {@code jcifs.smb.client.maxChannels} (int, default 4)
         *
         * @return maximum channels per session
         */
        int getMaxChannels();
    
        /**
         * Channel binding policy
         *
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 25.4K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SmbSessionInternal.java

         */
        boolean isInUse();
    
        /**
         * Returns the current session key used for signing and encryption.
         *
         * @return the current session key
         * @throws CIFSException if the session key cannot be retrieved
         */
        byte[] getSessionKey() throws CIFSException;
    
        /**
         * Returns the SMB transport associated with this session.
         *
         * @return the transport for this session
         */
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/smb1/SmbComTreeConnectAndX.java

        int writeParameterWordsWireFormat(final byte[] dst, int dstIndex) {
    
            if (session.transport.server.security == SECURITY_SHARE && (session.auth.hashesExternal || session.auth.password.length() > 0)) {
    
                if (session.transport.server.encryptedPasswords) {
                    // encrypted
                    password = session.auth.getAnsiHash(session.transport.server.encryptionKey);
                    passwordLength = password.length;
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 6.6K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/smb1/SmbTree.java

        int tid;
    
        String share;
        String service = "?????";
        String service0;
        SmbSession session;
        boolean inDfs, inDomainDfs;
        int tree_num; // used by SmbFile.isOpen
    
        SmbTree(final SmbSession session, final String share, final String service) {
            this.session = session;
            this.share = share.toUpperCase();
            if (service != null && !service.startsWith("??")) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 8.1K bytes
    - Viewed (0)
Back to top