Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 66 for SMBProtocolDecodingException (0.3 sec)

  1. src/main/java/jcifs/internal/SMBProtocolDecodingException.java

     *
     * @author mbechler
     */
    public class SMBProtocolDecodingException extends CIFSException {
    
        /**
         *
         */
        private static final long serialVersionUID = 4862398838709265475L;
    
        /**
         * Constructs a new SMBProtocolDecodingException with no detail message.
         */
        public SMBProtocolDecodingException() {
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.2K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/smb2/info/Smb2QueryInfoResponse.java

            default -> throw new SMBProtocolDecodingException("Unknwon information type " + infoType);
            };
        }
    
        /**
         * @param infoClass
         * @return
         * @throws SMBProtocolDecodingException
         */
        private static Decodable createFilesystemInformation(final byte infoClass) throws SMBProtocolDecodingException {
            return switch (infoClass) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb1/trans/TransTransactNamedPipeResponseTest.java

            byte[] buffer = new byte[2000];
            int dataLen = outputBuffer.length + 100; // Exceeds outputBuffer size
    
            SMBProtocolDecodingException exception =
                    assertThrows(SMBProtocolDecodingException.class, () -> response.readDataWireFormat(buffer, 0, dataLen));
    
            assertEquals("Payload exceeds buffer size", exception.getMessage());
        }
    
        @ParameterizedTest
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.5K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/SMBProtocolDecodingExceptionTest.java

            // Assert throwing/catching behavior with assertThrows
            SMBProtocolDecodingException thrown = assertThrows(SMBProtocolDecodingException.class, () -> {
                throw new SMBProtocolDecodingException();
            }, "Should be throwable via assertThrows");
            assertTrue(thrown instanceof CIFSException, "Thrown instance should also be CIFSException subtype");
        }
    
        @ParameterizedTest
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyResponse.java

        }
    
        /**
         * {@inheritDoc}
         *
         * @throws SMBProtocolDecodingException
         *             If there is an error decoding the response
         *
         * @see jcifs.internal.smb2.ServerMessageBlock2#readBytesWireFormat(byte[], int)
         */
        @Override
        protected int readBytesWireFormat(final byte[] buffer, int bufferIndex) throws SMBProtocolDecodingException {
            final int start = bufferIndex;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.9K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/ioctl/SrvRequestResumeKeyResponseTest.java

        void testDecodeThrowsExceptionWhenLengthTooShort() {
            byte[] buffer = new byte[28];
    
            // Test with len = 23 (one byte too short)
            SMBProtocolDecodingException exception = assertThrows(SMBProtocolDecodingException.class, () -> response.decode(buffer, 0, 23),
                    "Should throw exception when length < 24");
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  7. src/main/java/jcifs/internal/smb1/trans/TransCallNamedPipeResponse.java

            return 0;
        }
    
        @Override
        protected int readDataWireFormat(final byte[] buffer, final int bufferIndex, final int len) throws SMBProtocolDecodingException {
            if (len > this.outputBuffer.length) {
                throw new SMBProtocolDecodingException("Payload exceeds buffer size");
            }
            System.arraycopy(buffer, bufferIndex, this.outputBuffer, 0, len);
            return len;
        }
    
        @Override
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3K bytes
    - Viewed (0)
  8. 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;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  9. 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];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 02:21:31 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  10. 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);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:12:28 UTC 2025
    - 4.4K bytes
    - Viewed (0)
Back to top