Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 123 for SMB2 (0.12 seconds)

  1. src/test/java/jcifs/smb/SmbTransportImplTest.java

        void isSMB2_variants() throws Exception {
            // 1) smb2 flag set
            setField(transport, "smb2", true);
            assertTrue(transport.isSMB2());
    
            // 2) smb2 false but negotiated is SMB2 response
            setField(transport, "smb2", false);
            Smb2NegotiateResponse smb2 = new Smb2NegotiateResponse(cfg);
            setField(transport, "negotiated", smb2);
            assertTrue(transport.isSMB2());
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 17.6K bytes
    - Click Count (0)
  2. src/main/java/jcifs/internal/smb2/ServerMessageBlock2.java

        protected static final short SMB2_WRITE = 0x0009;
        /** SMB2 lock file command */
        protected static final short SMB2_LOCK = 0x000A;
        /** SMB2 IO control command */
        protected static final short SMB2_IOCTL = 0x000B;
        /** SMB2 cancel command */
        protected static final short SMB2_CANCEL = 0x000C;
        /** SMB2 echo/keepalive command */
        protected static final short SMB2_ECHO = 0x000D;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 31 08:00:57 GMT 2025
    - 24K bytes
    - Click Count (0)
  3. src/test/java/jcifs/smb/SmbWatchHandleImplTest.java

            assertTrue(result.isEmpty(), "List should be cleared");
        }
    
        // Parameterized test to exercise SMB2 with different recursive and filter values
        @ParameterizedTest(name = "SMB2 param: recursive={0}, filter={1}")
        @CsvSource({ "true, 0", "false, -1" })
        @DisplayName("watch() SMB2 parameterized branches execute without error")
        void watch_smb2_parameterized(boolean recursive, int filter) throws Exception {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 11.5K bytes
    - Click Count (0)
  4. src/test/java/jcifs/smb/SmbPipeInputStreamTest.java

            when(handle.getPipe()).thenReturn(pipe);
            when(tree.isSMB2()).thenReturn(smb2);
            return new SmbPipeInputStream(handle, tree);
        }
    
        @Test
        @DisplayName("available() on SMB2 returns peeked byte count and interacts with tree")
        void available_smb2_happyPath() throws Exception {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 9.9K bytes
    - Click Count (0)
  5. src/main/java/jcifs/internal/smb2/Smb2SigningDigest.java

    import jcifs.internal.SMBSigningDigest;
    import jcifs.internal.util.SMBUtil;
    import jcifs.util.Crypto;
    
    /**
     * SMB2/SMB3 message signing digest implementation.
     *
     * This class handles cryptographic signing of SMB2/SMB3 messages to ensure
     * message integrity and authenticity. It supports different signing algorithms
     * used in various SMB2/SMB3 dialect versions.
     *
     * @author mbechler
     */
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 9.9K bytes
    - Click Count (0)
  6. src/test/java/jcifs/smb/PreauthIntegrityTest.java

         */
        @Test
        @DisplayName("Pre-auth integrity hash should reset on error")
        void testPreauthHashResetOnError() throws Exception {
            // Setup invalid SMB2 state to trigger error
            setPrivateField(transport, "smb2", false);
    
            // Try to update preauth hash - should fail and reset
            Method updateMethod = findMethod(transport.getClass(), "updatePreauthHash", byte[].class);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 10.5K bytes
    - Click Count (0)
  7. src/main/java/jcifs/internal/smb2/lease/DirectoryChangeNotifier.java

                while (handle.isActive()) {
                    try {
                        // Note: Actual SMB2 Change Notify implementation would go here
                        // For now, this is a placeholder that simulates monitoring
    
                        // In a real implementation, we would:
                        // 1. Send SMB2 Change Notify request
                        // 2. Wait for response
                        // 3. Process changes
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 13.7K bytes
    - Click Count (0)
  8. src/test/java/jcifs/smb/SmbFileHandleImplTest.java

    import jcifs.internal.smb1.com.SmbComClose;
    import jcifs.internal.smb2.create.Smb2CloseRequest;
    
    @ExtendWith(MockitoExtension.class)
    class SmbFileHandleImplTest {
    
        @Mock
        Configuration cfg;
    
        @Mock
        SmbTreeHandleImpl tree;
    
        private void stubValidTree(long treeId, boolean connected, boolean smb2) {
            lenient().when(tree.acquire()).thenReturn(tree);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 12.3K bytes
    - Click Count (0)
  9. docs/smb3-features/01-smb3-lease-design.md

    ## 2. Protocol Specification Reference
    
    - **MS-SMB2 Section 2.2.13**: SMB2 CREATE Request with Lease Context
    - **MS-SMB2 Section 2.2.14**: SMB2 CREATE Response with Lease State
    - **MS-SMB2 Section 2.2.23**: SMB2 LEASE_BREAK Notification
    - **MS-SMB2 Section 2.2.24**: SMB2 LEASE_BREAK Acknowledgment
    
    ## 3. Lease Types and States
    
    ### 3.1 Lease State Flags
    ```java
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 02:53:50 GMT 2025
    - 22K bytes
    - Click Count (0)
  10. src/test/java/jcifs/smb/SmbFileInputStreamTest.java

    import org.mockito.quality.Strictness;
    
    import jcifs.Configuration;
    import jcifs.SmbConstants;
    import jcifs.internal.CommonServerMessageBlockResponse;
    import jcifs.internal.Request;
    import jcifs.internal.smb2.io.Smb2ReadRequest;
    import jcifs.internal.smb2.io.Smb2ReadResponse;
    
    @ExtendWith(MockitoExtension.class)
    @MockitoSettings(strictness = Strictness.LENIENT)
    class SmbFileInputStreamTest {
    
        @Mock
        SmbFile mockFile;
    
        @Mock
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 12.8K bytes
    - Click Count (0)
Back to Top