Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 20 of 20 for getSessionKey (0.07 seconds)

  1. src/main/java/jcifs/smb1/ntlmssp/Type3Message.java

            return masterKey;
        }
    
        /**
         * Returns the session key.
         *
         * @return A <code>byte[]</code> containing the session key.
         */
        public byte[] getSessionKey() {
            return sessionKey;
        }
    
        /**
         * Sets the session key.
         *
         * @param sessionKey The session key.
         */
        public void setSessionKey(final byte[] sessionKey) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 24.1K bytes
    - Click Count (0)
  2. 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());
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 21 11:13:46 GMT 2025
    - 20K bytes
    - Click Count (0)
  3. src/test/java/jcifs/dcerpc/DcerpcHandleTest.java

                return serverWithDfs;
            }
    
            @Override
            public CIFSContext getTransportContext() {
                return localTransportContext;
            }
    
            @Override
            public byte[] getSessionKey() throws CIFSException {
                return sessionKey;
            }
    
            @Override
            protected void doSendFragment(byte[] buf, int off, int length) throws IOException {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 15.3K bytes
    - Click Count (0)
  4. 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) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 21.5K bytes
    - Click Count (0)
  5. 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
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 15.9K bytes
    - Click Count (0)
  6. 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
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 68.9K bytes
    - Click Count (0)
  7. 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() {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 14.2K bytes
    - Click Count (0)
  8. 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 {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 21 11:13:46 GMT 2025
    - 8.2K bytes
    - Click Count (0)
  9. 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
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 13.5K bytes
    - Click Count (1)
  10. 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());
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 02:53:50 GMT 2025
    - 39.6K bytes
    - Click Count (0)
Back to Top