Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 20 for getSessionKey (1.74 sec)

  1. src/test/java/jcifs/util/SecureKeyManagerTest.java

        }
    
        @Test
        public void testStoreAndRetrieveKey() {
            String sessionId = "test-session-1";
            keyManager.storeSessionKey(sessionId, testKey, "AES");
    
            SecretKey retrieved = keyManager.getSessionKey(sessionId);
            assertNotNull(retrieved, "Should retrieve stored key");
            assertArrayEquals(testKey, retrieved.getEncoded(), "Retrieved key should match");
        }
    
        @Test
        public void testGetRawKey() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 14.2K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/SmbPipeHandleInternal.java

         * Gets the session key from the underlying SMB session.
         *
         * @return session key of the underlying smb session
         * @throws CIFSException if an error occurs retrieving the session key
         */
        byte[] getSessionKey() throws CIFSException;
    
        /**
         * Gets the input stream for reading from this pipe.
         *
         * @return this pipe's input stream
         * @throws CIFSException if an error occurs getting the input stream
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.7K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/SmbPipeHandleInternalTest.java

            // After close, report stale
            handle.close();
            assertTrue(handle.isStale(), "Closed handle reports stale");
        }
    
        @Test
        @DisplayName("getSessionKey propagates CIFSException from session acquisition")
        void getSessionKey_exception_propagates() throws Exception {
            SmbPipeHandleImpl handle = newHandleWithBasicStubs(0, "\\\\pipe\\\\sess");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 16.7K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb2/multichannel/ChannelManager.java

            ByteArrayOutputStream baos = new ByteArrayOutputStream();
    
            try {
                // Combine session key with channel-specific data
                byte[] sessionKey = getSessionKey();
                if (sessionKey != null) {
                    baos.write(sessionKey);
                }
                baos.write(channel.getLocalInterface().getAddress().getAddress());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 20K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/multichannel/MultiChannelIntegrationTest.java

            multiConfig = new PropertyConfiguration(props);
    
            // Mock context and session for ChannelManager
            when(mockContext.getConfig()).thenReturn(multiConfig);
            when(mockSession.getSessionKey()).thenReturn(new byte[16]);
    
            channelManager = new ChannelManager(mockContext, mockSession);
        }
    
        @Test
        void testMultiChannelInitialization() throws Exception {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  6. src/main/java/jcifs/util/SecureKeyManager.java

        }
    
        /**
         * Retrieve a session key
         *
         * @param sessionId unique session identifier
         * @return the secret key, or null if not found
         */
        public SecretKey getSessionKey(String sessionId) {
            checkNotClosed();
    
            SecretKey key = sessionKeys.get(sessionId);
    
            // Try to load from KeyStore if not in memory
            if (key == null && keyStore != null) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 21.5K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/Kerb5Context.java

                MIEName server = new MIEName(mech, ticket.getServer().getName());
                if (src.equals(client) && targ.equals(server)) {
                    return ticket.getSessionKey();
                }
            }
            return null;
        }
    
        /**
         * {@inheritDoc}
         *
         * @see java.lang.Object#toString()
         */
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 13.5K bytes
    - Viewed (1)
  8. src/main/java/jcifs/dcerpc/DcerpcHandle.java

         * @return session key of the underlying smb session
         * @throws CIFSException if unable to retrieve the session key
         */
        public abstract byte[] getSessionKey() throws CIFSException;
    
        @Override
        public String toString() {
            return this.binding.toString();
        }
    
        /**
         * Sends a DCERPC fragment to the remote endpoint
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  9. docs/smb3-features/03-multi-channel-design.md

            // Combine session key with channel-specific data
            ByteArrayOutputStream baos = new ByteArrayOutputStream();
            
            try {
                baos.write(session.getSessionKey());
                baos.write(channel.getLocalInterface().getAddress().getAddress());
                baos.write(channel.getRemoteInterface().getAddress().getAddress());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 39.6K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/SmbSessionImpl.java

                log.error("Failed to perform emergency cleanup", e);
            }
        }
    
        /**
         * @return the sessionKey
         * @throws CIFSException
         */
        @Override
        public byte[] getSessionKey() throws CIFSException {
            if (this.sessionKey == null) {
                throw new CIFSException("No session key available");
            }
            return this.sessionKey;
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 68.9K bytes
    - Viewed (0)
Back to top