Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 203 for CSession (0.46 sec)

  1. src/test/java/jcifs/smb1/smb1/SmbTreeTest.java

        }
    
        @Test
        void testEquals() {
            SmbTree tree1 = new SmbTree(session, "testShare", "testService");
            SmbTree tree2 = new SmbTree(session, "testShare", "testService");
            SmbTree tree3 = new SmbTree(session, "otherShare", "testService");
            SmbTree tree4 = new SmbTree(session, "testShare", "otherService");
    
            // Test equal trees (same share and service)
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 10.2K 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/PreauthIntegrityServiceTest.java

            assertFalse(java.util.Arrays.equals(salt1, salt2)); // Should be different
        }
    
        @Test
        @DisplayName("Test session initialization")
        public void testSessionInitialization() throws CIFSException {
            String sessionId = "test-session-1";
            byte[] salt = preauthService.generatePreauthSalt();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  4. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.7K 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  6. src/main/java/jcifs/internal/smb2/session/Smb2SessionSetupResponse.java

     *
     * @author mbechler
     *
     */
    public class Smb2SessionSetupResponse extends ServerMessageBlock2Response {
    
        /**
         * Session flag indicating this is a guest session
         */
        public static final int SMB2_SESSION_FLAGS_IS_GUEST = 0x1;
    
        /**
         * Session flag indicating this is a null/anonymous session
         */
        public static final int SMB2_SESSION_FLAGS_IS_NULL = 0x2;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 4.8K bytes
    - Viewed (1)
  7. src/main/java/jcifs/smb/PreauthIntegrityService.java

                    throw new CIFSException("No preauth integrity context found for session: " + sessionId);
                }
                log.warn("No preauth integrity context for session {}, skipping update", sessionId);
                return;
            }
    
            if (!context.isValid()) {
                throw new CIFSException("Preauth integrity context is invalid for session: " + sessionId);
            }
    
            try {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SmbTreeHandleImpl.java

            try (SmbSessionImpl session = this.treeConnection.getSession(); SmbTransportImpl transport = session.getTransport()) {
                return transport.getNegotiateResponse().getSendBufferSize();
            }
        }
    
        @Override
        public int getReceiveBufferSize() throws SmbException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb/SmbSessionImpl.java

    import jcifs.internal.smb2.nego.Smb2NegotiateResponse;
    import jcifs.internal.smb2.persistent.PersistentHandleManager;
    import jcifs.internal.smb2.session.Smb2LogoffRequest;
    import jcifs.internal.smb2.session.Smb2SessionSetupRequest;
    import jcifs.internal.smb2.session.Smb2SessionSetupResponse;
    import jcifs.internal.witness.WitnessClient;
    import jcifs.internal.witness.WitnessNotification;
    import jcifs.internal.witness.WitnessRegistration;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 68.9K bytes
    - Viewed (0)
  10. 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: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 11K bytes
    - Viewed (0)
Back to top