Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for getSessionKey (0.42 sec)

  1. src/test/java/jcifs/dcerpc/DcerpcPipeHandleTest.java

                DcerpcPipeHandle handle = createMockedDcerpcPipeHandle();
                byte[] expectedKey = "sessionKey".getBytes();
                when(mockSmbPipeHandleInternal.getSessionKey()).thenReturn(expectedKey);
                assertArrayEquals(expectedKey, handle.getSessionKey());
            }
    
            @Test
            @DisplayName("Should propagate CIFSException when getting session key")
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb/SmbSessionInternal.java

        /**
         * 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
         */
        SmbTransport getTransport();
    
        /**
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/SmbPipeHandleImpl.java

        /**
         *
         * {@inheritDoc}
         *
         * @see jcifs.smb.SmbPipeHandleInternal#getSessionKey()
         */
        @Override
        public byte[] getSessionKey() throws CIFSException {
            try (SmbTreeHandleImpl th = ensureTreeConnected(); SmbSessionImpl sess = th.getSession()) {
                return sess.getSessionKey();
            }
        }
    
        /**
         * {@inheritDoc}
         *
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 10.2K bytes
    - Viewed (0)
  4. src/main/java/jcifs/dcerpc/DcerpcPipeHandle.java

        }
    
        @Override
        public String getServerWithDfs() {
            return this.pipe.getLocator().getServerWithDfs();
        }
    
        @Override
        public byte[] getSessionKey() throws CIFSException {
            return this.handle.getSessionKey();
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.dcerpc.DcerpcHandle#doSendReceiveFragment(byte[], int, int, byte[])
         */
        @Override
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/AuthenticationProvider.java

        /**
         * Gets the session key after successful authentication
         *
         * @return the session key or null if not available
         */
        byte[] getSessionKey();
    
        /**
         * Gets the signing key for SMB2/3
         *
         * @return the signing key or null if not available
         */
        byte[] getSigningKey();
    
        /**
         * Validates authentication credentials
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 3.9K bytes
    - Viewed (1)
  6. 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 {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.3K bytes
    - Viewed (0)
  7. 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.7K bytes
    - Viewed (0)
  8. 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) {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 24.1K bytes
    - Viewed (0)
  9. 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  10. 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: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 21 11:13:46 UTC 2025
    - 20K bytes
    - Viewed (0)
Back to top