Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for session1 (0.07 sec)

  1. src/test/java/jcifs/smb/PreauthIntegrityServiceTest.java

        @Test
        @DisplayName("Test session finalization")
        public void testSessionFinalization() throws CIFSException {
            String sessionId = "test-session-4";
            byte[] salt = preauthService.generatePreauthSalt();
    
            preauthService.initializeSession(sessionId, salt, PreauthIntegrityService.HASH_ALGO_SHA512);
            assertNotNull(preauthService.getCurrentPreauthHash(sessionId));
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/MultiChannelManager.java

                }
    
                log.info("Created {} channels for session {}", channelGroup.getChannelCount(), sessionId);
                return channelGroup;
    
            } catch (Exception e) {
                sessionChannels.remove(sessionId);
                throw new CIFSException("Failed to create channels for session " + sessionId, e);
            }
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb2/Smb2EncryptionContext.java

            // Generate unique session ID for key management
            this.sessionId = String.format("smb-enc-%d-%d", System.currentTimeMillis(), secureRandom.nextLong());
    
            if (keyManager != null) {
                // Store keys securely
                String encKeyId = sessionId + "-enc";
                String decKeyId = sessionId + "-dec";
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 35.5K bytes
    - Viewed (0)
  4. 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)
  5. src/main/java/jcifs/smb/PreauthIntegrityService.java

            PreauthIntegrityContext context = sessionContexts.get(sessionId);
            if (context == null) {
                if (enforceIntegrity) {
                    throw new CIFSException("No preauth integrity context found for session: " + sessionId);
                }
                log.warn("No preauth integrity context for session {}, skipping validation", sessionId);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/SmbTransportPoolImplTest.java

            // Simulate session already in use by adding a session
            Field sessionsField = SmbTransportImpl.class.getDeclaredField("sessions");
            sessionsField.setAccessible(true);
            @SuppressWarnings("unchecked")
            List<Object> sessions = (List<Object>) sessionsField.get(first);
            sessions.add(new Object()); // Add one session to reach the limit
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 19.2K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/NtlmPasswordAuthenticator.java

                Arrays.fill(this.password, '\0');
                this.password = null;
            }
            // Also remove from secure key manager if we have a session
            if (this.sessionId != null) {
                keyManager.removeSessionKey(this.sessionId);
                this.sessionId = null;
            }
        }
    
        /**
         * Check if the authentication has expired based on TTL
         *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 30.3K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb2/ServerMessageBlock2.java

        }
    
        /**
         * Gets the session identifier for this message.
         *
         * @return the sessionId
         */
        public long getSessionId() {
            return this.sessionId;
        }
    
        /**
         * @param sessionId
         *            the sessionId to set
         */
        @Override
        public final void setSessionId(final long sessionId) {
            this.sessionId = sessionId;
            if (this.next != null) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 24K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/Smb2EncryptionContextTest.java

                context.rotateKeys(newKey, newKey);
            });
        }
    
        @Test
        @DisplayName("Should perform automatic key rotation when session key is provided")
        void testAutomaticKeyRotation() throws Exception {
            // Given - Create context with session key for rotation support
            byte[] sessionKey = new byte[16];
            byte[] preauthHash = new byte[64];
            new SecureRandom().nextBytes(sessionKey);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 44.1K bytes
    - Viewed (0)
  10. 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)
Back to top