Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 20 of 41 for NdrException (0.67 seconds)

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

  1. src/test/java/jcifs/smb1/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 {
    
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 33.6K bytes
    - Click Count (0)
  2. src/main/java/jcifs/dcerpc/rpc.java

            public uuid_t uuid;
    
            @Override
            public void encode(NdrBuffer _dst) throws NdrException {
                _dst.align(4);
                _dst.enc_ndr_long(this.type);
                if (this.uuid == null) {
                    throw new NdrException(NdrException.NO_NULL_REF);
                }
                _dst.enc_ndr_long(this.uuid.time_low);
                _dst.enc_ndr_short(this.uuid.time_mid);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 11.3K bytes
    - Click Count (0)
  3. src/test/java/jcifs/dcerpc/msrpc/lsarpcTest.java

            when(mockDeferredNdrBuffer.dec_ndr_long()).thenReturn(-1, 0, 5); // Invalid _name_buffers
    
            assertThrows(NdrException.class, () -> domainInfo.decode(mockNdrBuffer));
        }
    
        // Test for LsarDnsDomainInfo
        @Test
        void testLsarDnsDomainInfoEncode() throws NdrException {
            lsarpc.LsarDnsDomainInfo dnsDomainInfo = new lsarpc.LsarDnsDomainInfo();
            dnsDomainInfo.name = new rpc.unicode_string();
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 60.8K bytes
    - Click Count (0)
  4. 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
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 20.5K bytes
    - Click Count (0)
  5. src/main/java/jcifs/smb1/dcerpc/DcerpcMessage.java

         * @throws NdrException if encoding fails
         */
        public abstract void encode_in(NdrBuffer buf) throws NdrException;
    
        /**
         * Decode the output parameters from this DCERPC message.
         * @param buf the buffer to decode from
         * @throws NdrException if decoding fails
         */
        public abstract void decode_out(NdrBuffer buf) throws NdrException;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 6K bytes
    - Click Count (0)
  6. src/test/java/jcifs/dcerpc/DcerpcMessageTest.java

            @DisplayName("decode_header should throw NdrException for invalid RPC version")
            void testDecodeHeaderThrowsNdrExceptionForRpcVersion() {
                when(mockBuffer.dec_ndr_small()).thenReturn(4); // Incorrect RPC version
                assertThrows(NdrException.class, () -> message.decode_header(mockBuffer));
            }
    
            @Test
            @DisplayName("decode_header should throw NdrException for invalid minor RPC version")
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 18.3K bytes
    - Click Count (0)
  7. src/main/java/jcifs/dcerpc/msrpc/samr.java

                this.handle = handle;
            }
    
            @Override
            public void encode_in(final NdrBuffer _dst) throws NdrException {
                this.handle.encode(_dst);
            }
    
            @Override
            public void decode_out(final NdrBuffer _src) throws NdrException {
                this.retval = _src.dec_ndr_long();
            }
        }
    
        /**
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 23.4K bytes
    - Click Count (0)
  8. src/main/java/jcifs/smb1/dcerpc/msrpc/samr.java

                this.handle = handle;
            }
    
            @Override
            public void encode_in(final NdrBuffer _dst) throws NdrException {
                handle.encode(_dst);
            }
    
            @Override
            public void decode_out(final NdrBuffer _src) throws NdrException {
                retval = _src.dec_ndr_long();
            }
        }
    
        /**
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 23.1K bytes
    - Click Count (0)
  9. src/main/java/jcifs/internal/witness/WitnessRpcMessage.java

         * @throws NdrException if decoding fails
         */
        protected abstract void decodeWitnessParameters(NdrBuffer buf) throws NdrException;
    
        @Override
        public void encode_in(NdrBuffer buf) throws NdrException {
            encodeWitnessParameters(buf);
        }
    
        @Override
        public void decode_out(NdrBuffer buf) throws NdrException {
            decodeWitnessParameters(buf);
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 24 00:12:28 GMT 2025
    - 5.5K bytes
    - Click Count (0)
  10. src/main/java/jcifs/internal/witness/WitnessAsyncNotifyMessage.java

         * Decodes a single notification from the NDR buffer.
         *
         * @param buf the NDR buffer
         * @return the decoded notification
         * @throws NdrException if decoding fails
         */
        private WitnessNotificationResponse decodeNotification(NdrBuffer buf) throws NdrException {
            WitnessNotificationResponse notification = new WitnessNotificationResponse();
    
            // Notification type
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sun Aug 24 00:12:28 GMT 2025
    - 16.4K bytes
    - Click Count (0)
Back to Top