Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for DcerpcException (0.08 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/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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. src/test/java/jcifs/dcerpc/msrpc/SamrPolicyHandleTest.java

            }
        }
    
        @Test
        void testConstructor_OtherDcerpcException() throws DcerpcException, IOException {
            // Test case: Constructor with other DcerpcException, should rethrow
            String server = "testServer";
            int access = 123;
            DcerpcException expectedException = new DcerpcException("Other error") {
                @Override
                public int getErrorCode() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  10. src/main/java/jcifs/dcerpc/msrpc/SamrPolicyHandle.java

     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
     */
    
    package jcifs.dcerpc.msrpc;
    
    import java.io.IOException;
    
    import jcifs.dcerpc.DcerpcError;
    import jcifs.dcerpc.DcerpcException;
    import jcifs.dcerpc.DcerpcHandle;
    import jcifs.dcerpc.rpc;
    import jcifs.smb.SmbException;
    
    /**
     * Handle for Security Account Manager (SAM) policy operations.
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.7K bytes
    - Viewed (0)
Back to top