Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 107 for reauthenticate (0.38 sec)

  1. src/test/java/jcifs/smb/SmbSessionInternalTest.java

        }
    
        // Happy path: reauthenticate completes without exception
        @Test
        @DisplayName("reauthenticate performs call without exception")
        void reauthenticate_happy() throws CIFSException {
            session.reauthenticate();
            verify(session).reauthenticate();
        }
    
        // Error propagation: reauthenticate throws CIFSException
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  2. src/test/java/jcifs/smb/SmbSessionImplTest.java

            assertFalse(session.isSignatureSetupRequired());
        }
    
        @Test
        @DisplayName("reauthenticate propagates transport failures")
        void testReauthenticatePropagates() throws Exception {
            SmbSessionImpl session = newSession();
            // Cause the inner reauthenticate to fail at first transport call
            when(transport.getNegotiateResponse()).thenThrow(new SmbException("fail"));
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.5K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/SmbSessionInternal.java

         */
        SmbTree getSmbTree(String share, String service);
    
        /**
         * Initiate reauthentication
         *
         * @throws CIFSException if reauthentication fails
         */
        void reauthenticate() throws CIFSException;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/SmbSessionImpl.java

                    }
                }
            }
        }
    
        @Override
        @SuppressWarnings("unchecked")
        public void reauthenticate() throws CIFSException {
            try (SmbTransportImpl trans = getTransport()) {
                reauthenticate(trans, this.targetDomain, null, null, Collections.EMPTY_SET);
            }
        }
    
        /**
         * @param trans
         * @param andx
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 68.9K bytes
    - Viewed (0)
  5. samples/guide/src/main/java/okhttp3/recipes/Authenticate.java

    import okhttp3.Request;
    import okhttp3.Response;
    
    public final class Authenticate {
      private final OkHttpClient client;
    
      public Authenticate() {
        client = new OkHttpClient.Builder()
            .authenticator((route, response) -> {
              if (response.request().header("Authorization") != null) {
                return null; // Give up, we've already attempted to authenticate.
              }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Aug 12 07:26:27 UTC 2021
    - 1.9K bytes
    - Viewed (0)
  6. samples/guide/src/main/java/okhttp3/recipes/kt/Authenticate.kt

    import okhttp3.OkHttpClient
    import okhttp3.Request
    import okhttp3.Response
    import okhttp3.Route
    
    class Authenticate {
      private val client =
        OkHttpClient
          .Builder()
          .authenticator(
            object : Authenticator {
              @Throws(IOException::class)
              override fun authenticate(
                route: Route?,
                response: Response,
              ): Request? {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 2K bytes
    - Viewed (0)
  7. okhttp/src/jvmTest/kotlin/okhttp3/HeadersChallengesTest.kt

            .Builder()
            .add("WWW-Authenticate: Basic realm=\"protected area\"")
            .build()
        assertThat(headers.parseChallenges("WWW-Authenticate"))
          .isEqualTo(listOf(Challenge("Basic", mapOf("realm" to "protected area"))))
      }
    
      @Test fun basicChallengeWithCharset() {
        val headers =
          Headers
            .Builder()
            .add("WWW-Authenticate: Basic realm=\"protected area\", charset=\"UTF-8\"")
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 16.8K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/http/NtlmSsp.java

     */
    
    public class NtlmSsp implements NtlmFlags {
    
        /**
         * Default constructor.
         */
        public NtlmSsp() {
            // Default constructor
        }
    
        /**
         * Calls the static {@link #authenticate(HttpServletRequest,
         * HttpServletResponse, byte[])} method to perform NTLM authentication
         * for the specified servlet request.
         *
         * @param req The request being serviced.
         * @param resp The response.
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  9. okhttp/src/jvmTest/kotlin/okhttp3/internal/authenticator/JavaNetAuthenticatorTest.kt

        val response =
          Response
            .Builder()
            .request(request)
            .code(401)
            .header("WWW-Authenticate", "Basic realm=\"User Visible Realm\"")
            .protocol(HTTP_2)
            .message("Unauthorized")
            .build()
        val authRequest = authenticator.authenticate(route, response)
    
        assertEquals(
          "Basic ${RecordingAuthenticator.BASE_64_CREDENTIALS}",
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 2.7K bytes
    - Viewed (0)
  10. src/test/java/jcifs/http/NtlmServletTest.java

            lenient().when(request.isSecure()).thenReturn(true);
    
            ntlmServlet.service(request, response);
    
            verify(response).setHeader("WWW-Authenticate", "NTLM");
            verify(response).addHeader("WWW-Authenticate", "Basic realm=\"TestRealm\"");
            verify(response).setStatus(HttpServletResponse.SC_UNAUTHORIZED);
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 04:51:33 UTC 2025
    - 11.5K bytes
    - Viewed (0)
Back to top