Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 20 of 95 for Negotiate (0.06 seconds)

  1. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateRequestTest.java

            // When
            int bytesWritten = request.writeBytesWireFormat(buffer, 0);
    
            // Then
            assertTrue(bytesWritten > 36);
    
            // Verify negotiate context count
            assertEquals(2, SMBUtil.readInt2(buffer, 32));
    
            // Verify negotiate context offset is set
            int contextOffset = SMBUtil.readInt4(buffer, 28);
            assertTrue(contextOffset > 0);
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 20.7K bytes
    - Click Count (0)
  2. src/main/java/jcifs/internal/smb2/nego/PreauthIntegrityNegotiateContext.java

    package jcifs.internal.smb2.nego;
    
    import jcifs.Configuration;
    import jcifs.internal.SMBProtocolDecodingException;
    import jcifs.internal.util.SMBUtil;
    
    /**
     * SMB2 Pre-authentication Integrity Negotiate Context.
     *
     * This negotiate context is used in SMB 3.1.1 to establish
     * pre-authentication integrity protection against downgrade attacks.
     *
     * @author mbechler
     */
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 4.4K bytes
    - Click Count (0)
  3. src/main/java/jcifs/internal/smb2/Smb2Constants.java

        }
    
        /**
         * SMB2 header length in bytes
         */
        public static final int SMB2_HEADER_LENGTH = 64;
    
        /**
         * SMB2 negotiate flag indicating signing is enabled
         */
        public static final int SMB2_NEGOTIATE_SIGNING_ENABLED = 0x0001;
    
        /**
         * SMB2 negotiate flag indicating signing is required
         */
        public static final int SMB2_NEGOTIATE_SIGNING_REQUIRED = 0x0002;
    
        /**
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 23 05:11:12 GMT 2025
    - 4.5K bytes
    - Click Count (0)
  4. src/main/java/jcifs/internal/smb2/rdma/SmbDirectNegotiateRequest.java

     */
    package jcifs.internal.smb2.rdma;
    
    import jcifs.internal.util.SMBUtil;
    
    /**
     * SMB Direct Negotiate Request message.
     *
     * As per MS-SMBD 2.2.1 - SMB_DIRECT_NEGOTIATE_REQUEST
     * This message is sent to negotiate SMB Direct protocol parameters.
     */
    public class SmbDirectNegotiateRequest {
    
        // Protocol constants
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 24 00:12:28 GMT 2025
    - 5.4K bytes
    - Click Count (0)
  5. src/main/java/jcifs/internal/smb2/rdma/SmbDirectNegotiateResponse.java

        }
    
        /**
         * Get the negotiated SMB Direct protocol version
         *
         * @return negotiated protocol version
         */
        public int getNegotiatedVersion() {
            return negotiatedVersion;
        }
    
        /**
         * Set the negotiated SMB Direct protocol version
         *
         * @param negotiatedVersion negotiated protocol version
         */
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 24 00:12:28 GMT 2025
    - 9.3K bytes
    - Click Count (0)
  6. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseTest.java

            SMBUtil.writeInt2(128, buffer, offset + 56); // Offset
            SMBUtil.writeInt2(0, buffer, offset + 58); // Length
    
            // Negotiate context offset
            SMBUtil.writeInt4(144, buffer, offset + 60); // Point to contexts
    
            // Add negotiate contexts at offset 144
            int ctxOffset = 144;
    
            // Preauth integrity context
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 32.5K bytes
    - Click Count (0)
  7. src/main/java/jcifs/internal/smb2/nego/Smb2NegotiateRequest.java

    import jcifs.internal.smb2.ServerMessageBlock2Request;
    import jcifs.internal.smb2.Smb2Constants;
    import jcifs.internal.util.SMBUtil;
    
    /**
     * SMB2 Negotiate Protocol request message.
     *
     * This command is used to negotiate the SMB protocol dialect
     * and security parameters between client and server.
     *
     * @author mbechler
     */
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 9.3K bytes
    - Click Count (0)
  8. src/main/java/jcifs/smb1/smb1/SmbTransport.java

            }
        }
    
        @Override
        protected void doConnect() throws IOException {
            /*
             * Negotiate Protocol Request / Response
             */
    
            final SmbComNegotiateResponse resp = new SmbComNegotiateResponse(server);
            try {
                negotiate(port, resp);
            } catch (final ConnectException | NoRouteToHostException nr) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 31.8K bytes
    - Click Count (0)
  9. src/test/java/jcifs/config/SecurityConfigurationTest.java

         */
        @Test
        public void testSecureNegotiateRequired() throws CIFSException {
            BaseConfiguration config = new BaseConfiguration(true);
    
            // Verify secure negotiate is required for SMB3
            assertTrue("Secure negotiate should be required for SMB3", config.isRequireSecureNegotiate());
        }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 3.1K bytes
    - Click Count (0)
  10. src/test/java/jcifs/smb/SmbTreeImplTest.java

            when(transport.isSMB2()).thenReturn(false);
            when(transport.getContext()).thenReturn(context);
            when(session.getTargetHost()).thenReturn("localhost");
    
            // Mock negotiate response for SMB1
            SmbComNegotiateResponse nego = mock(SmbComNegotiateResponse.class);
            ServerData serverData = new ServerData();
            when(nego.getServerData()).thenReturn(serverData);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 7.8K bytes
    - Click Count (0)
Back to Top