- Sort Score
- Num 10 results
- Language All
Results 21 - 30 of 88 for Authenticator (0.16 seconds)
-
samples/guide/src/main/java/okhttp3/recipes/kt/Authenticate.kt
*/ package okhttp3.recipes.kt import java.io.IOException import okhttp3.Authenticator import okhttp3.Credentials 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(Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 2K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/authenticator/JavaNetAuthenticatorTest.kt
* See the License for the specific language governing permissions and * limitations under the License. */ package okhttp3.internal.authenticator import java.net.Authenticator import java.net.InetAddress import junit.framework.TestCase.assertNull import okhttp3.FakeDns import okhttp3.Protocol.HTTP_2 import okhttp3.Request import okhttp3.Response
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 2.7K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/KotlinDeprecationErrorTest.kt
val hostnameVerifier: HostnameVerifier = client.hostnameVerifier() val certificatePinner: CertificatePinner = client.certificatePinner() val proxyAuthenticator: Authenticator = client.proxyAuthenticator() val authenticator: Authenticator = client.authenticator() val connectionPool: ConnectionPool = client.connectionPool() val dns: Dns = client.dns() val followSslRedirects: Boolean = client.followSslRedirects()
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Dec 27 13:39:56 GMT 2024 - 13.3K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/OkHttpClient.kt
} /** * Sets the authenticator used to respond to challenges from origin servers. Use * [proxyAuthenticator] to set the authenticator for proxy servers. * * If unset, the [no authentication will be attempted][Authenticator.NONE]. */ fun authenticator(authenticator: Authenticator) = apply { this.authenticator = authenticator }Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Feb 03 22:17:59 GMT 2026 - 51.5K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/sso/SsoAuthenticatorTest.java
// Execute authenticator.resolveCredential(resolver); // Verify assertTrue(authenticator.isResolverCalled()); assertNotNull(authenticator.getLastResolver()); } @Test public void test_resolveCredential_withNullResolver() { // Execute authenticator.resolveCredential(null); // VerifyCreated: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 11.2K bytes - Click Count (1) -
docs/features/calls.md
If the response issues an authorization challenge, OkHttp will ask the [`Authenticator`](https://square.github.io/okhttp/5.x/okhttp/okhttp3/-authenticator/) (if one is configured) to satisfy the challenge. If the authenticator supplies a credential, the request is retried with that credential included. ## Retrying Requests
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sun Mar 15 09:01:42 GMT 2026 - 3.9K bytes - Click Count (0) -
okhttp/api/jvm/okhttp.api
public static final field JAVA_NET_AUTHENTICATOR Lokhttp3/Authenticator; public static final field NONE Lokhttp3/Authenticator; public abstract fun authenticate (Lokhttp3/Route;Lokhttp3/Response;)Lokhttp3/Request; } public final class okhttp3/Authenticator$Companion { } public final class okhttp3/Cache : java/io/Closeable, java/io/Flushable { public static final field Companion Lokhttp3/Cache$Companion;
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Mar 10 21:47:20 GMT 2026 - 72.3K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/app/web/base/login/EntraIdCredential.java
try { final EntraIdAuthenticator authenticator = ComponentUtil.getComponent(EntraIdAuthenticator.class); final IAuthenticationResult newResult = authenticator.refreshTokenSilently(this); if (newResult != null) { authResult = newResult; authenticator.updateMemberOf(this); permissions = null;Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Nov 28 16:29:12 GMT 2025 - 7.8K bytes - Click Count (0) -
src/main/java/jcifs/smb1/smb1/NtlmAuthenticator.java
private void reset() { url = null; sae = null; } /** * Set the default <code>NtlmAuthenticator</code>. Once the default authenticator is set it cannot be changed. Calling this metho again will have no effect. * @param a the authenticator to set as default */ public synchronized static void setDefault(final NtlmAuthenticator a) { if (auth != null) { return; }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 3.7K bytes - Click Count (0) -
src/test/java/jcifs/smb/JAASAuthenticatorTest.java
auth.refresh(); Subject afterRefresh = auth.getSubject(); // After refresh, may succeed or fail depending on JAAS configuration // Just verify that refresh doesn't break the authenticator assertNotNull(auth, "Authenticator should remain usable after refresh"); } @Test @DisplayName("handle: sets NameCallback and PasswordCallback on happy path")
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 9.9K bytes - Click Count (0)