Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 27 for DcerpcException (2.12 sec)

  1. src/main/java/jcifs/dcerpc/DcerpcException.java

        /** The DCERPC error code */
        private int error;
    
        DcerpcException(final int error) {
            super(getMessageByDcerpcError(error));
            this.error = error;
        }
    
        /**
         * Constructs a DcerpcException with the specified message
         *
         * @param msg
         *            the error message
         */
        public DcerpcException(final String msg) {
            super(msg);
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.9K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/dcerpc/DcerpcException.java

        /** The root cause exception */
        private Throwable rootCause;
    
        DcerpcException(final int error) {
            super(getMessageByDcerpcError(error));
            this.error = error;
        }
    
        /**
         * Constructs a DcerpcException with the specified message
         *
         * @param msg the error message
         */
        public DcerpcException(final String msg) {
            super(msg);
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 3.2K bytes
    - Viewed (0)
  3. src/test/java/jcifs/dcerpc/DcerpcErrorTest.java

        }
    
        @Test
        @DisplayName("Should verify DcerpcException uses fault codes correctly")
        void testDcerpcExceptionIntegration() {
            // Test that DcerpcException can be created and implements DcerpcError
            DcerpcException ex1 = new DcerpcException("Test error", null);
            assertTrue(ex1 instanceof DcerpcError, "DcerpcException should implement DcerpcError");
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7K bytes
    - Viewed (0)
  4. src/test/java/jcifs/dcerpc/DcerpcBindingTest.java

        }
    
        @Test
        void testSetOptionEndpointInvalidPipe() {
            String endpoint = "\\pipe\\unknown";
            DcerpcException thrown = assertThrows(DcerpcException.class, () -> {
                dcerpcBinding.setOption("endpoint", endpoint);
            }, "Should throw DcerpcException for unknown pipe endpoint.");
    
            assertTrue(thrown.getMessage().contains("Bad endpoint"), "Exception message should indicate a bad endpoint.");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 8.5K bytes
    - Viewed (0)
  5. src/main/java/jcifs/dcerpc/DcerpcHandle.java

            }
            throw new DcerpcException("DCERPC transport not supported: " + url);
        }
    
        /**
         * Bind the handle
         *
         * @throws DcerpcException
         *            if there is a DCE/RPC protocol error
         * @throws IOException
         *            if there is an I/O error during binding
         */
        public void bind() throws DcerpcException, IOException {
            synchronized (this) {
                try {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  6. src/test/java/jcifs/dcerpc/DcerpcSecurityProviderTest.java

        }
    
        @Test
        void testWrapMethodThrowsDcerpcException() throws DcerpcException {
            // Configure the mock to throw DcerpcException when wrap is called
            doThrow(new DcerpcException("Test wrap exception")).when(dcerpcSecurityProvider).wrap(mockNdrBuffer);
    
            // Assert that calling wrap throws DcerpcException
            assertThrows(DcerpcException.class, () -> dcerpcSecurityProvider.wrap(mockNdrBuffer));
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/dcerpc/DcerpcSecurityProvider.java

         * @param outgoing the buffer containing data to be wrapped
         * @throws DcerpcException if the wrapping operation fails
         */
        void wrap(NdrBuffer outgoing) throws DcerpcException;
    
        /**
         * Unwraps incoming DCERPC message data after security processing
         * @param incoming the buffer containing data to be unwrapped
         * @throws DcerpcException if the unwrapping operation fails
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  8. src/main/java/jcifs/dcerpc/DcerpcSecurityProvider.java

         * @param outgoing the buffer containing data to be wrapped
         * @throws DcerpcException if the wrapping operation fails
         */
        void wrap(NdrBuffer outgoing) throws DcerpcException;
    
        /**
         * Unwraps incoming DCERPC message data after security processing
         * @param incoming the buffer containing data to be unwrapped
         * @throws DcerpcException if the unwrapping operation fails
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  9. src/test/java/jcifs/dcerpc/DcerpcHandleTest.java

                    "proto:[endpoint=]" })
            void testParseInvalidBindingUrls(String url) {
                // When/Then: Should throw DcerpcException for invalid URLs
                assertThrows(DcerpcException.class, () -> DcerpcHandle.parseBinding(url));
            }
    
            @Test
            @DisplayName("Should handle binding URLs without endpoints correctly")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.3K bytes
    - Viewed (0)
  10. src/test/java/jcifs/dcerpc/DcerpcExceptionTest.java

        }
    
        /**
         * Test constructor DcerpcException(String msg).
         */
        @Test
        void testConstructorWithMessage() {
            String message = "Test message for DcerpcException.";
            DcerpcException exception = new DcerpcException(message);
    
            assertEquals(0, exception.getErrorCode(), "Error code should be 0 for message-only constructor.");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.8K bytes
    - Viewed (0)
Back to top