- Sort Score
- Num 10 results
- Language All
Results 21 - 30 of 54 for NdrException (0.12 seconds)
-
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) -
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) -
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) -
src/test/java/jcifs/dcerpc/ndr/NdrShortTest.java
} } @Nested @DisplayName("Encoding Tests") class EncodingTests { @Test @DisplayName("Should encode value correctly") void testEncode() throws NdrException { // Given: NdrShort with test value int testValue = 123; NdrShort ndrShort = new NdrShort(testValue); // When: Encoding the valueCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11.2K bytes - Click Count (0) -
src/test/java/jcifs/smb1/dcerpc/ndr/NdrHyperTest.java
public void testEncodeNullBuffer() throws NdrException { NdrHyper hyper = new NdrHyper(5L); assertThrows(NullPointerException.class, () -> hyper.encode(null)); } /** * Ensure decode throws NPE when passed a null buffer. */ @Test @DisplayName("Decode with null buffer throws NullPointerException") public void testDecodeNullBuffer() throws NdrException { NdrHyper hyper = new NdrHyper(0L);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 4.3K bytes - Click Count (0) -
src/main/java/jcifs/smb1/dcerpc/ndr/NdrObject.java
* @throws NdrException if encoding fails */ public abstract void encode(NdrBuffer dst) throws NdrException; /** * Decodes this NDR object from the specified buffer * @param src the source buffer for decoding * @throws NdrException if decoding fails */ public abstract void decode(NdrBuffer src) throws NdrException;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 1.7K bytes - Click Count (0) -
src/main/java/jcifs/dcerpc/ndr/NdrObject.java
* @throws NdrException if encoding fails */ public abstract void encode(NdrBuffer dst) throws NdrException; /** * Decodes this NDR object from the specified buffer * @param src the source buffer for decoding * @throws NdrException if decoding fails */ public abstract void decode(NdrBuffer src) throws NdrException;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 1.7K bytes - Click Count (0) -
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) -
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 typeCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 24 00:12:28 GMT 2025 - 16.4K bytes - Click Count (0) -
src/test/java/jcifs/dcerpc/msrpc/lsarpcIntegrationTest.java
import org.junit.jupiter.api.Test; import jcifs.dcerpc.rpc; import jcifs.dcerpc.ndr.NdrBuffer; import jcifs.dcerpc.ndr.NdrException; /** * Integration tests for lsarpc classes using real NdrBuffer implementations */ class lsarpcIntegrationTest { @Test void testLsarDomainInfoEncodeDecodeRoundTrip() throws NdrException { // Create a domain info with test dataCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 10.8K bytes - Click Count (0)