Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for getTransportPool (0.37 sec)

  1. src/test/java/jcifs/tests/SessionTest.java

            ctx.getTransportPool().logon(ctx, ctx.getNameServiceClient().getByName(getTestServer()));
        }
    
    
        // #68
        @Test ( expected = SmbException.class )
        public void testPoolLogonFail () throws CIFSException, UnknownHostException {
            CIFSContext ctx = withTestNTLMCredentials(getContext());
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Thu Jan 05 13:09:03 UTC 2023
    - 15.8K bytes
    - Viewed (0)
  2. src/main/java/jcifs/http/NtlmHttpFilter.java

                    }
                    else {
                        dc = getTransportContext().getNameServiceClient().getByName(this.domainController, true);
                        challenge = getTransportContext().getTransportPool().getChallenge(getTransportContext(), dc);
                    }
    
                    if ( ( ntlm = NtlmSsp.authenticate(getTransportContext(), req, resp, challenge) ) == null ) {
                        return null;
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 14.8K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/SmbTransportPoolImpl.java

            return getChallenge(tf, dc, 0);
        }
    
    
        @Override
        public byte[] getChallenge ( CIFSContext tf, Address dc, int port ) throws SmbException {
            try ( SmbTransportInternal trans = tf.getTransportPool()
                    .getSmbTransport(tf, dc, port, false, !tf.getCredentials().isAnonymous() && tf.getConfig().isIpcSigningEnforced())
                    .unwrap(SmbTransportInternal.class) ) {
                trans.ensureConnected();
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Dec 20 14:09:34 UTC 2020
    - 12.5K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/DfsImpl.java

                // https://lists.samba.org/archive/samba-technical/2009-August/066486.html
                // UniAddress addr = UniAddress.getByName(authDomain, true, tf);
                // SmbTransport trans = tf.getTransportPool().getSmbTransport(tf, addr, 0);
                try ( SmbTransport dc = getDc(tf, authDomain) ) {
                    CacheEntry<Map<String, CacheEntry<DfsReferralDataInternal>>> entry = new CacheEntry<>(tf.getConfig().getDfsTtl() * 10L);
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Thu Jan 05 13:07:29 UTC 2023
    - 29.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/tests/ContextConfigTest.java

        }
    
    
        @Test
        public void testSingletonInit () {
            assertNotNull(this.context.getBufferCache());
            assertNotNull(this.context.getNameServiceClient());
            assertNotNull(this.context.getTransportPool());
            assertNotNull(this.context.getUrlHandler());
            assertNotNull(this.context.getCredentials());
        }
    
    
        @Test
        public void testCredentials () {
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Mon Mar 13 12:00:57 UTC 2023
    - 9.9K bytes
    - Viewed (0)
  6. src/test/java/jcifs/tests/ConcurrencyTest.java

                    }
                }
            });
    
            try {
                CIFSContext c = getContext();
                c = withTestNTLMCredentials(c);
                try ( SmbTransportInternal trans = c.getTransportPool().getSmbTransport(c, getTestServer(), 0, false, true)
                        .unwrap(SmbTransportInternal.class);
                      SmbSession sess = trans.unwrap(SmbTransportInternal.class).getSmbSession(c, getTestServer(), null);
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Nov 14 17:40:50 UTC 2021
    - 17.6K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/SmbTreeConnection.java

                        if ( log.isDebugEnabled() ) {
                            log.debug("Using exclusive transport for " + this);
                        }
                        this.exclusiveTransport = this.ctx.getTransportPool()
                                .getSmbTransport(this.ctx, host, loc.getPort(), true, loc.shouldForceSigning()).unwrap(SmbTransportInternal.class);
                        SmbTransportInternal trans = this.exclusiveTransport;
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Tue Jul 07 10:50:16 UTC 2020
    - 31K bytes
    - Viewed (0)
  8. src/test/java/jcifs/tests/TimeoutTest.java

                    // connection should be closed by now
                    assertTrue("Transport is still connected", t.isDisconnected());
                    assertFalse("Connection is still in the pool", ( (SmbTransportPoolImpl) ctx.getTransportPool() ).contains(t));
                }
                finally {
                    f.delete();
                }
            }
    
        }
    
    
        @Test ( expected = ConnectionTimeoutException.class )
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 12.4K bytes
    - Viewed (0)
  9. src/main/java/jcifs/http/NetworkExplorer.java

                    }
    
                    req.getSession(); /* ensure session id is set for cluster env. */
                    challenge = getTransportContext().getTransportPool().getChallenge(getTransportContext(), dc);
                    if ( ( ntlm = NtlmSsp.authenticate(getTransportContext(), req, resp, challenge) ) == null ) {
                        return;
                    }
                }
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 21.3K bytes
    - Viewed (0)
Back to top