Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for getHandle (0.14 sec)

  1. src/main/java/jcifs/smb/SmbPipeOutputStream.java

            return this.handle.ensureOpen();
        }
    
        /**
         * Gets the pipe handle implementation for this output stream.
         *
         * @return the handle
         */
        protected SmbPipeHandleImpl getHandle() {
            return this.handle;
        }
    
        @Override
        public void close() {
            // ignore, the shared file descriptor is closed by the pipe handle
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SmbPipeOutputStreamTest.java

        }
    
        @Test
        @DisplayName("getHandle returns the exact handle instance")
        void getHandle_returnsHandle() throws Exception {
            // Arrange
            SmbPipeOutputStream out = newStream();
    
            // Act
            SmbPipeHandleImpl got = out.getHandle();
    
            // Assert
            assertSame(handle, got, "getHandle should expose the same instance passed to constructor");
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/SmbEnumerationUtil.java

        /**
         *
         */
        private SmbEnumerationUtil() {
        }
    
        private static DcerpcHandle getHandle(final CIFSContext ctx, final SmbResourceLocator loc, final Address address, final String ep)
                throws MalformedURLException, DcerpcException {
            return DcerpcHandle.getHandle(String.format("ncacn_np:%s[endpoint=%s,address=%s]", loc.getServer(), ep, address.getHostAddress()),
                    ctx);
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/SIDCacheImpl.java

        }
    
        void resolveSids0(final String authorityServerName, final CIFSContext tc, final jcifs.SID[] sids) throws CIFSException {
            synchronized (this.sidCache) {
                try (DcerpcHandle handle = DcerpcHandle.getHandle("ncacn_np:" + authorityServerName + "[\\PIPE\\lsarpc]", tc)) {
                    String server = authorityServerName;
                    final int dot = server.indexOf('.');
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Mon Aug 25 14:34:10 UTC 2025
    - 13.6K bytes
    - Viewed (0)
  5. src/main/java/jcifs/dcerpc/DcerpcHandle.java

         * @throws DcerpcException
         *            if there is an error establishing the connection
         */
        public static DcerpcHandle getHandle(final String url, final CIFSContext tc) throws MalformedURLException, DcerpcException {
            return getHandle(url, tc, false);
        }
    
        /**
         * Get a handle to a service
         *
         * @param url
         *            the DCE/RPC service URL
    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/DcerpcHandleTest.java

            }
    
            @Test
            @DisplayName("Should reject unsupported protocols")
            void testGetHandleUnsupportedProtocol() {
                // When/Then: Should throw exception for unsupported protocols
                assertThrows(DcerpcException.class, () -> DcerpcHandle.getHandle("unsupported:\\\\server", mockContext));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.3K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/smb1/SID.java

            DcerpcHandle handle = null;
            LsaPolicyHandle policyHandle = null;
    
            synchronized (sid_cache) {
                try {
                    handle = DcerpcHandle.getHandle("ncacn_np:" + authorityServerName + "[\\PIPE\\lsarpc]", auth);
                    String server = authorityServerName;
                    final int dot = server.indexOf('.');
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 31.5K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/dcerpc/DcerpcHandle.java

         * @throws MalformedURLException if the URL is malformed
         * @throws DcerpcException if DCERPC initialization fails
         */
        public static DcerpcHandle getHandle(final String url, final NtlmPasswordAuthentication auth)
                throws UnknownHostException, MalformedURLException, DcerpcException {
            if (url.startsWith("ncacn_np:")) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  9. src/main/java/jcifs/internal/witness/WitnessRpcClient.java

            this.context = context;
    
            try {
                // Create DCE/RPC handle for witness service
                String rpcUrl = buildWitnessRpcUrl(serverAddress);
                this.rpcHandle = DcerpcHandle.getHandle(rpcUrl, context);
                this.rpcHandle.bind();
                this.connected = true;
    
                log.debug("Connected to witness service at {}", serverAddress.getHostAddress());
            } catch (Exception e) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 24 00:12:28 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/smb1/SmbTransport.java

        //        SmbTransport trans = SmbTransport.getSmbTransport(dc, 0);
        //        DfsReferral[] dr = trans.getDfsReferrals(auth, "\\" + domainName, 1);
        //
        //        handle = DcerpcHandle.getHandle("ncacn_np:" +
        //                    UniAddress.getByName(dr[0].server).getHostAddress() +
        //                    "[\\PIPE\\netdfs]", auth);
        //        try {
        //            rpc = new MsrpcDfsRootEnum(domainName);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 31.8K bytes
    - Viewed (0)
Back to top