Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 41 - 50 of 102 for SMBProtocolDecodingException (0.67 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. src/main/java/jcifs/internal/smb2/session/Smb2LogoffResponse.java

        }
    
        /**
         * {@inheritDoc}
         *
         * @throws SMBProtocolDecodingException if the response structure is invalid
         *
         * @see jcifs.internal.smb2.ServerMessageBlock2#readBytesWireFormat(byte[], int)
         */
        @Override
        protected int readBytesWireFormat(final byte[] buffer, final int bufferIndex) throws SMBProtocolDecodingException {
            final int structureSize = SMBUtil.readInt2(buffer, bufferIndex);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 2.2K bytes
    - Click Count (0)
  2. src/main/java/jcifs/internal/smb2/tree/Smb2TreeConnectResponse.java

        }
    
        /**
         * {@inheritDoc}
         *
         * @throws SMBProtocolDecodingException if an error occurs during decoding
         *
         * @see jcifs.internal.smb2.ServerMessageBlock2#readBytesWireFormat(byte[], int)
         */
        @Override
        protected int readBytesWireFormat(final byte[] buffer, int bufferIndex) throws SMBProtocolDecodingException {
            final int start = bufferIndex;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 7.8K bytes
    - Click Count (0)
  3. src/main/java/jcifs/internal/smb2/create/LeaseV2CreateContextResponse.java

        public int getEpoch() {
            return epoch;
        }
    
        @Override
        public int decode(byte[] buffer, int bufferIndex, int len) throws SMBProtocolDecodingException {
            int start = bufferIndex;
    
            if (len < 52) {
                throw new SMBProtocolDecodingException("Lease V2 context data too short: " + len);
            }
    
            // Read lease V2 data (52 bytes)
            byte[] keyBytes = new byte[16];
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 23 02:21:31 GMT 2025
    - 3.6K bytes
    - Click Count (0)
  4. src/main/java/jcifs/internal/smb2/persistent/DurableHandleReconnectResponse.java

            return CONTEXT_NAME_BYTES;
        }
    
        @Override
        public int decode(byte[] buffer, int bufferIndex, int len) throws SMBProtocolDecodingException {
            // Reconnect response has no data - length should be 0
            if (len != 0) {
                throw new SMBProtocolDecodingException("Invalid durable handle reconnect response length: " + len);
            }
    
            // No data to decode
            return 0;
        }
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 21 04:51:33 GMT 2025
    - 2K bytes
    - Click Count (0)
  5. src/main/java/jcifs/internal/smb2/nego/Smb2RdmaTransformCapabilitiesContext.java

            return data.length;
        }
    
        @Override
        public int decode(byte[] buffer, int bufferIndex, int len) throws SMBProtocolDecodingException {
            if (len < 20) {
                throw new SMBProtocolDecodingException("Invalid RDMA Transform Capabilities context length: " + len);
            }
    
            int start = bufferIndex;
    
            transformCount = SMBUtil.readInt2(buffer, bufferIndex);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 24 00:12:28 GMT 2025
    - 4.4K bytes
    - Click Count (0)
  6. src/test/java/jcifs/internal/smb1/AndXServerMessageBlockTest.java

            SMBUtil.writeInt2(20, buffer, 42); // byteCount
    
            assertThrows(SMBProtocolDecodingException.class, () -> {
                testBlock.decode(buffer, 0);
            });
        }
    
        @Test
        @DisplayName("Test decode NT_CREATE_ANDX extended response")
        void testDecodeNTCreateAndXExtended() throws SMBProtocolDecodingException {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 19.4K bytes
    - Click Count (0)
  7. src/main/java/jcifs/internal/smb2/create/LeaseV1CreateContextResponse.java

        public int getLeaseFlags() {
            return leaseFlags;
        }
    
        @Override
        public int decode(byte[] buffer, int bufferIndex, int len) throws SMBProtocolDecodingException {
            int start = bufferIndex;
    
            if (len < 32) {
                throw new SMBProtocolDecodingException("Lease V1 context data too short: " + len);
            }
    
            // Read lease V1 data (32 bytes)
            byte[] keyBytes = new byte[16];
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 23 02:21:31 GMT 2025
    - 2.8K bytes
    - Click Count (0)
  8. src/main/java/jcifs/internal/smb2/lock/Smb2OplockBreakNotification.java

         */
        @Override
        protected int readBytesWireFormat(final byte[] buffer, int bufferIndex) throws SMBProtocolDecodingException {
            final int start = bufferIndex;
            final int structureSize = SMBUtil.readInt2(buffer, bufferIndex);
            if (structureSize != 24) {
                throw new SMBProtocolDecodingException("Expected structureSize = 24");
            }
    
            this.oplockLevel = buffer[bufferIndex + 2];
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 2.9K bytes
    - Click Count (0)
  9. src/test/java/jcifs/internal/smb2/ServerMessageBlock2ResponseTest.java

                response.setDigest(mockDigest);
                when(mockDigest.verify(buffer, 0, 100, 0, response)).thenReturn(true);
    
                SMBProtocolDecodingException exception =
                        assertThrows(SMBProtocolDecodingException.class, () -> response.haveResponse(buffer, 0, 100));
    
                assertTrue(exception.getMessage().contains("Signature verification failed"));
            }
        }
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 19.3K bytes
    - Click Count (0)
  10. src/main/java/jcifs/internal/smb2/lock/Smb2LeaseBreakResponse.java

        @Override
        protected int readBytesWireFormat(byte[] buffer, int bufferIndex) throws SMBProtocolDecodingException {
            int start = bufferIndex;
    
            // StructureSize (2 bytes) - must be 36
            this.structureSize = SMBUtil.readInt2(buffer, bufferIndex);
            if (this.structureSize != 36) {
                throw new SMBProtocolDecodingException("Invalid lease break response structure size: " + this.structureSize);
            }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 23 02:21:31 GMT 2025
    - 3.7K bytes
    - Click Count (0)
Back to Top