Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for DcerpcPipeHandle (0.06 sec)

  1. src/test/java/jcifs/dcerpc/DcerpcPipeHandleTest.java

        }
    
        /**
         * Helper method to create a DcerpcPipeHandle with injected mocks
         * Uses mock to avoid constructor issues while allowing real method calls
         */
        private DcerpcPipeHandle createMockedDcerpcPipeHandle() throws Exception {
            // Create a mock without calling the constructor
            DcerpcPipeHandle handle = mock(DcerpcPipeHandle.class);
    
            // Inject the binding using reflection
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/dcerpc/DcerpcHandle.java

            if (this instanceof DcerpcPipeHandle) {
                return ((DcerpcPipeHandle) this).pipe.getServer();
            }
            return null;
        }
    
        /**
         * Gets the principal associated with this handle
         * @return the principal or null if not authenticated
         */
        public Principal getPrincipal() {
            if (this instanceof DcerpcPipeHandle) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  3. src/test/java/jcifs/dcerpc/DcerpcHandleTest.java

        @Nested
        @DisplayName("Handle Creation Tests")
        class HandleCreationTests {
    
            @Test
            @DisplayName("Should create DcerpcPipeHandle for ncacn_np protocol")
            void testGetHandleNcacnNpProtocol() {
                // When/Then: Should attempt to create DcerpcPipeHandle (may fail due to SMB URL creation)
                // This tests the protocol recognition logic, actual creation may fail due to missing SMB support
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.3K bytes
    - Viewed (0)
  4. src/main/java/jcifs/dcerpc/DcerpcHandle.java

                throws MalformedURLException, DcerpcException {
            if (url.startsWith("ncacn_np:")) {
                return new DcerpcPipeHandle(url, tc, unshared);
            }
            throw new DcerpcException("DCERPC transport not supported: " + url);
        }
    
        /**
         * Bind the handle
         *
         * @throws DcerpcException
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 15.9K bytes
    - Viewed (0)
Back to top