Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 54 for NdrException (0.05 sec)

  1. src/main/java/jcifs/smb1/dcerpc/ndr/NdrException.java

         */
        public static final String INVALID_CONFORMANCE = "invalid array conformance";
    
        /**
         * Constructs an NdrException with the specified error message.
         *
         * @param msg the error message
         */
        public NdrException(final String msg) {
            super(msg);
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  2. src/main/java/jcifs/dcerpc/ndr/NdrException.java

         */
        public static final String INVALID_CONFORMANCE = "invalid array conformance";
    
        /**
         * Constructs an NdrException with the specified error message.
         *
         * @param msg the error message
         */
        public NdrException(final String msg) {
            super(msg);
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.7K bytes
    - Viewed (1)
  3. src/main/java/jcifs/smb1/dcerpc/rpc.java

                final int _nodei = _src.index;
                _src.advance(1 * _nodes);
    
                if (node == null) {
                    if (_nodes < 0 || _nodes > 0xFFFF) {
                        throw new NdrException(NdrException.INVALID_CONFORMANCE);
                    }
                    node = new byte[_nodes];
                }
                _src = _src.derive(_nodei);
                for (int _i = 0; _i < _nodes; _i++) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 11.2K bytes
    - Viewed (0)
  4. src/main/java/jcifs/dcerpc/msrpc/srvsvc.java

            public void encode(NdrBuffer _dst) throws NdrException {
                _dst.align(4);
                _dst.enc_ndr_referent(this.netname, 1);
    
                if (this.netname != null) {
                    _dst = _dst.deferred;
                    _dst.enc_ndr_string(this.netname);
    
                }
            }
    
            @Override
            public void decode(NdrBuffer _src) throws NdrException {
                _src.align(4);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 27K bytes
    - Viewed (0)
  5. src/test/java/jcifs/dcerpc/msrpc/samrTest.java

                when(mockDeferredBuffer.dec_ndr_long()).thenReturn(-1); // Invalid _name_buffers
    
                // When/Then: Should throw exception
                NdrException thrown = assertThrows(NdrException.class, () -> entry.decode(mockNdrBuffer));
                assertEquals(NdrException.INVALID_CONFORMANCE, thrown.getMessage());
            }
        }
    
        @Nested
        @DisplayName("SamrSamArray Tests")
        class SamrSamArrayTests {
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 33.7K bytes
    - Viewed (0)
  6. src/test/java/jcifs/dcerpc/ndr/NdrExceptionTest.java

         * Ensures that the exception is created with the correct message.
         */
        @Test
        void testConstructorWithMessage() {
            String testMessage = "This is a test message for NdrException.";
            NdrException exception = new NdrException(testMessage);
            assertEquals(testMessage, exception.getMessage(), "The exception message should match the input message.");
        }
    
        /**
         * Test the NO_NULL_REF static field.
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 1.5K bytes
    - Viewed (0)
  7. src/test/java/jcifs/dcerpc/rpcTest.java

                policyHandle.uuid = null;
    
                // When/Then: Should throw NdrException
                assertThrows(NdrException.class, () -> policyHandle.encode(mockNdrBuffer));
            }
    
            @Test
            @DisplayName("Should decode policy handle correctly")
            void testPolicyHandleDecode() throws NdrException {
                // Given: A policy handle to decode into
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 20.5K bytes
    - Viewed (0)
  8. src/test/java/jcifs/dcerpc/msrpc/netdfsTest.java

    import java.io.ByteArrayInputStream;
    import java.io.ByteArrayOutputStream;
    
    import org.junit.jupiter.api.BeforeEach;
    import org.junit.jupiter.api.Test;
    
    import jcifs.dcerpc.ndr.NdrBuffer;
    import jcifs.dcerpc.ndr.NdrException;
    import jcifs.dcerpc.ndr.NdrLong;
    
    public class netdfsTest {
    
        private NdrBuffer mockNdrBuffer;
    
        @BeforeEach
        void setUp() {
            mockNdrBuffer = mock(NdrBuffer.class);
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 30.9K bytes
    - Viewed (0)
  9. src/main/java/jcifs/dcerpc/msrpc/netdfs.java

            public void encode(NdrBuffer _dst) throws NdrException {
                _dst.align(4);
                _dst.enc_ndr_referent(this.entry_path, 1);
    
                if (this.entry_path != null) {
                    _dst = _dst.deferred;
                    _dst.enc_ndr_string(this.entry_path);
    
                }
            }
    
            @Override
            public void decode(NdrBuffer _src) throws NdrException {
                _src.align(4);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 21.8K bytes
    - Viewed (0)
  10. src/main/java/jcifs/dcerpc/msrpc/lsarpc.java

            public void encode(final NdrBuffer _dst) throws NdrException {
                _dst.align(4);
                _dst.enc_ndr_long(this.length);
                _dst.enc_ndr_short(this.impersonation_level);
                _dst.enc_ndr_small(this.context_mode);
                _dst.enc_ndr_small(this.effective_only);
    
            }
    
            @Override
            public void decode(final NdrBuffer _src) throws NdrException {
                _src.align(4);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 44.5K bytes
    - Viewed (0)
Back to top