Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for NtlmHttpURLConnection (1.02 sec)

  1. src/main/java/jcifs/smb1/http/NtlmHttpURLConnection.java

     * Wraps an <code>HttpURLConnection</code> to provide NTLM authentication
     * services.
     *
     * Please read <a href="../../../httpclient.html">Using jCIFS NTLM Authentication for HTTP Connections</a>.
     */
    public class NtlmHttpURLConnection extends HttpURLConnection {
    
        private static final int MAX_REDIRECTS = Integer.getInteger("http.maxRedirects", 20);
    
        private static final int LM_COMPATIBILITY = Config.getInt("jcifs.smb1.smb.lmCompatibility", 0);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 22.1K bytes
    - Viewed (0)
  2. src/main/java/jcifs/http/NtlmHttpURLConnection.java

     *             versions will allow to do this safely.
     */
    @Deprecated
    public class NtlmHttpURLConnection extends HttpURLConnection {
    
        private static final Logger log = LoggerFactory.getLogger(NtlmHttpURLConnection.class);
        private static final int MAX_REDIRECTS = Integer.getInteger("http.maxRedirects", 20);
    
        private HttpURLConnection connection;
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 25.6K bytes
    - Viewed (0)
  3. src/test/java/jcifs/http/HandlerTest.java

            assertNotNull(connection, "Connection should not be null.");
            assertTrue(connection instanceof NtlmHttpURLConnection, "Connection should be an instance of NtlmHttpURLConnection.");
        }
    
        @Test
        void testOpenConnection_HttpsProtocol_ReturnsNtlmHttpURLConnection() throws Exception {
            // This test ensures that for a standard HTTPS URL, openConnection also works and
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  4. src/main/java/jcifs/https/Handler.java

    package jcifs.https;
    
    import jcifs.CIFSContext;
    import jcifs.http.NtlmHttpURLConnection;
    
    /**
     * A <code>URLStreamHandler</code> used to provide NTLM authentication
     * capabilities to the default HTTPS handler. This acts as a wrapper,
     * handling authentication and passing control to the underlying
     * stream handler.
     *
     * @deprecated {@link NtlmHttpURLConnection} is broken by design.
     */
    @Deprecated
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.9K bytes
    - Viewed (0)
  5. src/test/java/jcifs/http/NtlmHttpURLConnectionTest.java

        private URL mockUrl;
    
        @Mock
        private CIFSContext mockCifsContext;
    
        @Mock
        private NameServiceClient mockNameServiceClient;
    
        private NtlmHttpURLConnection ntlmConnection;
    
        /**
         * Sets up the mocks and the NtlmHttpURLConnection instance before each test.
         * @throws IOException
         */
        @BeforeEach
        void setUp() throws IOException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  6. src/main/java/jcifs/http/Handler.java

     * capabilities to the default HTTP handler. This acts as a wrapper,
     * handling authentication and passing control to the underlying
     * stream handler.
     *
     * @deprecated {@link NtlmHttpURLConnection} is broken by design.
     */
    @Deprecated
    public class Handler extends URLStreamHandler {
    
        private static final Logger log = LoggerFactory.getLogger(Handler.class);
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.9K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb1/http/Handler.java

        }
    
        @Override
        protected URLConnection openConnection(URL url) throws IOException {
            url = new URL(url, url.toExternalForm(), getDefaultStreamHandler(url.getProtocol()));
            return new NtlmHttpURLConnection((HttpURLConnection) url.openConnection());
        }
    
        private static URLStreamHandler getDefaultStreamHandler(final String protocol) throws IOException {
            synchronized (PROTOCOL_HANDLERS) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.1K bytes
    - Viewed (0)
Back to top