Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 20 of 62 for Smb2Constants (0.08 seconds)

  1. src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupResponseTest.java

            buildHeader(buf, headerStart, NtStatus.NT_STATUS_MORE_PROCESSING_REQUIRED, 0x0001, expectedSessionId);
    
            int bodyStart = headerStart + Smb2Constants.SMB2_HEADER_LENGTH;
            byte[] blob = new byte[] { 10, 20, 30, 40, 50 };
            int secBufOffset = Smb2Constants.SMB2_HEADER_LENGTH + 8; // directly after fixed part
            int sessionFlags = Smb2SessionSetupResponse.SMB2_SESSION_FLAGS_IS_GUEST;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 9.7K bytes
    - Click Count (0)
  2. src/main/java/jcifs/internal/smb2/session/Smb2LogoffRequest.java

     */
    package jcifs.internal.smb2.session;
    
    import jcifs.CIFSContext;
    import jcifs.Configuration;
    import jcifs.internal.smb2.ServerMessageBlock2Request;
    import jcifs.internal.smb2.Smb2Constants;
    import jcifs.internal.util.SMBUtil;
    
    /**
     * SMB2 Logoff request message. This command is used to terminate an SMB2 session.
     *
     * @author mbechler
     *
     */
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 2.4K bytes
    - Click Count (0)
  3. src/main/java/jcifs/internal/smb2/tree/Smb2TreeConnectRequest.java

        @Override
        public boolean chain(final ServerMessageBlock2 n) {
            n.setTreeId(Smb2Constants.UNSPECIFIED_TREEID);
            return super.chain(n);
        }
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.internal.CommonServerMessageBlockRequest#size()
         */
        @Override
        public int size() {
            return size8(Smb2Constants.SMB2_HEADER_LENGTH + 8 + this.path.length() * 2);
        }
    
        /**
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 3.5K bytes
    - Click Count (0)
  4. src/main/java/jcifs/DialectVersion.java

         */
        SMB202(Smb2Constants.SMB2_DIALECT_0202),
    
        /**
         * SMB 2.1 - Windows 7/Server 2008R2
         */
        SMB210(Smb2Constants.SMB2_DIALECT_0210),
    
        /**
         * SMB 3.0 - Windows 8/Server 2012
         */
        SMB300(Smb2Constants.SMB2_DIALECT_0300),
    
        /**
         * SMB 3.0.2 - Windows 8.1/Server 2012R2
         */
        SMB302(Smb2Constants.SMB2_DIALECT_0302),
    
        /**
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 4.3K bytes
    - Click Count (0)
  5. src/main/java/jcifs/internal/smb2/io/Smb2FlushRequest.java

    package jcifs.internal.smb2.io;
    
    import jcifs.CIFSContext;
    import jcifs.Configuration;
    import jcifs.internal.smb2.RequestWithFileId;
    import jcifs.internal.smb2.ServerMessageBlock2Request;
    import jcifs.internal.smb2.Smb2Constants;
    import jcifs.internal.util.SMBUtil;
    
    /**
     * SMB2 Flush request message.
     *
     * This command is used to flush buffered data to the
     * underlying storage device for a given file handle.
     *
     * @author mbechler
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 3K bytes
    - Click Count (0)
  6. src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectRequestTest.java

            int size = request.size();
    
            // Then
            // Verify size includes SMB2_HEADER_LENGTH
            assertTrue(size >= Smb2Constants.SMB2_HEADER_LENGTH);
    
            // The actual calculation: (SMB2_HEADER_LENGTH + 4 + 7) & ~7
            int expectedBase = Smb2Constants.SMB2_HEADER_LENGTH + 4;
            int expectedAligned = (expectedBase + 7) & ~7;
            assertEquals(expectedAligned, size);
        }
    
        @Test
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 14.1K bytes
    - Click Count (0)
  7. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateRequestTest.java

            boolean shouldEnforce = (securityMode & Smb2Constants.SMB2_NEGOTIATE_SIGNING_REQUIRED) != 0;
            assertEquals(shouldEnforce, request.isSigningEnforced());
        }
    
        private static Stream<Arguments> provideSecurityModes() {
            return Stream.of(Arguments.of(0), Arguments.of(Smb2Constants.SMB2_NEGOTIATE_SIGNING_ENABLED),
                    Arguments.of(Smb2Constants.SMB2_NEGOTIATE_SIGNING_REQUIRED),
    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)
  8. src/main/java/jcifs/internal/smb2/lock/Smb2LockRequest.java

    package jcifs.internal.smb2.lock;
    
    import jcifs.CIFSContext;
    import jcifs.Configuration;
    import jcifs.internal.smb2.RequestWithFileId;
    import jcifs.internal.smb2.ServerMessageBlock2Request;
    import jcifs.internal.smb2.Smb2Constants;
    import jcifs.internal.util.SMBUtil;
    
    /**
     * SMB2 Lock request message. This command is used to request byte-range locks
     * on portions of a file.
     *
     * @author mbechler
     *
     */
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 3.8K bytes
    - Click Count (0)
  9. src/main/java/jcifs/internal/smb2/info/Smb2QueryDirectoryResponse.java

    import jcifs.Configuration;
    import jcifs.internal.SMBProtocolDecodingException;
    import jcifs.internal.fscc.FileBothDirectoryInfo;
    import jcifs.internal.smb2.ServerMessageBlock2Response;
    import jcifs.internal.smb2.Smb2Constants;
    import jcifs.internal.util.SMBUtil;
    import jcifs.smb.FileEntry;
    
    /**
     * SMB2 Query Directory response message. This response contains directory listing
     * information with file entries and their attributes.
     *
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 4.1K bytes
    - Click Count (0)
  10. src/main/java/jcifs/internal/smb2/info/Smb2SetInfoRequest.java

    import jcifs.Configuration;
    import jcifs.Encodable;
    import jcifs.internal.fscc.FileInformation;
    import jcifs.internal.smb2.RequestWithFileId;
    import jcifs.internal.smb2.ServerMessageBlock2Request;
    import jcifs.internal.smb2.Smb2Constants;
    import jcifs.internal.util.SMBUtil;
    
    /**
     * SMB2 Set Info request message. This command is used to modify file attributes,
     * security information, or other metadata on the server.
     *
     * @author mbechler
     *
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 5.7K bytes
    - Click Count (0)
Back to Top