Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 121 - 128 of 128 for SMBProtocolDecodingException (0.32 seconds)

  1. src/test/java/jcifs/internal/RequestWithPathTest.java

                return resolveInDfs;
            }
    
            // CommonServerMessageBlock interface methods (stubbed for testing)
            @Override
            public int decode(byte[] buffer, int bufferIndex) throws SMBProtocolDecodingException {
                return 0;
            }
    
            @Override
            public int encode(byte[] dst, int dstIndex) {
                return 0;
            }
    
            @Override
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 12.2K bytes
    - Click Count (0)
  2. src/main/java/jcifs/smb/SmbTransportImpl.java

                throw e;
            }
    
        }
    
        /**
         * @param response
         * @throws IOException
         * @throws SMBProtocolDecodingException
         */
        private void doRecvSMB2(final CommonServerMessageBlock response) throws IOException, SMBProtocolDecodingException {
            int size = Encdec.dec_uint16be(this.sbuf, 2) & 0xFFFF | (this.sbuf[1] & 0xFF) << 16;
            if (size < Smb2Constants.SMB2_HEADER_LENGTH + 1) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 69.8K bytes
    - Click Count (0)
  3. src/test/java/jcifs/internal/NotifyResponseTest.java

                this.nextResponse = null;
            }
    
            // CommonServerMessageBlock interface methods
            @Override
            public int decode(byte[] buffer, int bufferIndex) throws SMBProtocolDecodingException {
                // Mock implementation
                return 0;
            }
    
            @Override
            public int encode(byte[] dst, int dstIndex) {
                // Mock implementation
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 21.2K bytes
    - Click Count (0)
  4. docs/smb3-features/01-smb3-lease-design.md

            dstIndex += 4;
            
            return dstIndex - start;
        }
        
        @Override
        protected int readPayload(byte[] buffer, int offset) throws SMBProtocolDecodingException {
            int start = offset;
            
            // StructureSize (2 bytes)
            structureSize = readInt2(buffer, offset);
            offset += 2;
            
            // Reserved (2 bytes)
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 02:53:50 GMT 2025
    - 22K bytes
    - Click Count (0)
  5. src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseTest.java

    import org.junit.jupiter.params.provider.ValueSource;
    
    import jcifs.CIFSContext;
    import jcifs.Configuration;
    import jcifs.DialectVersion;
    import jcifs.internal.CommonServerMessageBlock;
    import jcifs.internal.SMBProtocolDecodingException;
    import jcifs.internal.SmbNegotiationResponse;
    import jcifs.internal.smb2.ServerMessageBlock2;
    import jcifs.internal.smb2.ServerMessageBlock2Response;
    import jcifs.internal.smb2.Smb2Constants;
    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)
  6. src/test/java/jcifs/internal/smb2/nego/PreauthIntegrityNegotiateContextTest.java

    import org.junit.jupiter.params.provider.ValueSource;
    import org.mockito.Mock;
    import org.mockito.junit.jupiter.MockitoExtension;
    
    import jcifs.Configuration;
    import jcifs.internal.SMBProtocolDecodingException;
    import jcifs.internal.util.SMBUtil;
    
    /**
     * Test class for PreauthIntegrityNegotiateContext
     */
    @ExtendWith(MockitoExtension.class)
    @DisplayName("PreauthIntegrityNegotiateContext Tests")
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 34K bytes
    - Click Count (0)
  7. src/test/java/jcifs/internal/AllocInfoTest.java

                // Given
                byte[] buffer = new byte[100];
                when(mockAllocInfo.decode(any(byte[].class), anyInt(), anyInt()))
                        .thenThrow(new jcifs.internal.SMBProtocolDecodingException("Test error"));
    
                // When & Then
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 18.8K bytes
    - Click Count (0)
  8. src/test/java/jcifs/internal/smb2/lock/Smb2OplockBreakNotificationTest.java

                byte[] buffer = new byte[64];
                SMBUtil.writeInt2(23, buffer, 0); // Invalid size (should be 24)
    
                SMBProtocolDecodingException exception =
                        assertThrows(SMBProtocolDecodingException.class, () -> notification.readBytesWireFormat(buffer, 0));
    
                assertEquals("Expected structureSize = 24", exception.getMessage());
            }
    
    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)
Back to Top