- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 54 for Challenge (0.08 sec)
-
okhttp/src/main/kotlin/okhttp3/Challenge.kt
import okhttp3.internal.commonEquals import okhttp3.internal.commonHashCode import okhttp3.internal.commonToString /** * An [RFC 7235][rfc_7235] challenge. * * [rfc_7235]: https://tools.ietf.org/html/rfc7235 */ class Challenge( /** Returns the authentication scheme, like `Basic`. */ @get:JvmName("scheme") val scheme: String, authParams: Map<String?, String>, ) { /**
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 3.5K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/HeadersChallengesTest.kt
} @Test fun testDigestChallengeWithTokenFormOfAuthParam() { val headers = Headers.Builder() .add("WWW-Authenticate", "Digest realm=myrealm").build() val challenges = headers.parseChallenges("WWW-Authenticate") assertThat(challenges.size).isEqualTo(1) assertThat(challenges[0].scheme).isEqualTo("Digest")
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 16.6K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/authenticator/JavaNetAuthenticator.kt
route: Route?, response: Response, ): Request? { val challenges = response.challenges() val request = response.request val url = request.url val proxyAuthorization = response.code == 407 val proxy = route?.proxy ?: Proxy.NO_PROXY for (challenge in challenges) { if (!"Basic".equals(challenge.scheme, ignoreCase = true)) { continue }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 3.2K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/http/HttpHeaders.kt
*/ fun Headers.parseChallenges(headerName: String): List<Challenge> { val result = mutableListOf<Challenge>() for (h in 0 until size) { if (headerName.equals(name(h), ignoreCase = true)) { val header = Buffer().writeUtf8(value(h)) try { header.readChallengeHeader(result) } catch (e: EOFException) { Platform.get().log("Unable to parse challenge", Platform.WARN, e) } } }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 7.2K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/-ChallengeCommon.kt
package okhttp3.internal import okhttp3.Challenge fun Challenge.commonEquals(other: Any?): Boolean { return other is Challenge && other.scheme == scheme && other.authParams == authParams } fun Challenge.commonHashCode(): Int { var result = 29 result = 31 * result + scheme.hashCode() result = 31 * result + authParams.hashCode() return result }
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 1.1K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/NtlmChallenge.java
public final class NtlmChallenge implements Serializable { public byte[] challenge; public UniAddress dc; NtlmChallenge( byte[] challenge, UniAddress dc ) { this.challenge = challenge; this.dc = dc; } public String toString() { return "NtlmChallenge[challenge=0x" + Hexdump.toHexString( challenge, 0, challenge.length * 2 ) + ",dc=" + dc.toString() + "]"; }
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Fri Mar 22 21:10:40 UTC 2019 - 1.4K bytes - Viewed (0) -
src/main/java/jcifs/ntlmssp/Type2Message.java
} /** * Returns the challenge for this message. * * @return A <code>byte[]</code> containing the challenge. */ public byte[] getChallenge () { return this.challenge; } /** * Sets the challenge for this message. * * @param challenge * The challenge from the domain controller/server. */
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Jul 01 13:12:10 UTC 2018 - 14.4K bytes - Viewed (0) -
src/main/java/jcifs/http/NtlmSsp.java
* The response. * @param challenge * The domain controller challenge. * @return credentials passed in the servlet request * @throws IOException * If an IO error occurs. */ public NtlmPasswordAuthentication doAuthentication ( CIFSContext tc, HttpServletRequest req, HttpServletResponse resp, byte[] challenge ) throws IOException {
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Jul 01 13:12:10 UTC 2018 - 4.7K bytes - Viewed (0) -
src/test/java/jcifs/tests/NtlmTest.java
String target = "TARGET"; byte[] challenge = new byte[] { 0x1, 0x2, 0x3, 0x4, 0x5, 0x6, 0x7, 0x8 }; Type2Message t2 = new Type2Message(this.context, flags, challenge, target); Type2Message parsed = new Type2Message(t2.toByteArray()); assertArrayEquals(challenge, parsed.getChallenge()); assertEquals(target, parsed.getTarget()); }
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Sun Dec 16 10:38:43 UTC 2018 - 4.8K bytes - Viewed (0) -
src/main/java/jcifs/smb1/smb1/NtlmPasswordAuthentication.java
*/ public byte[] getAnsiHash( byte[] challenge ) { if( hashesExternal ) { return ansiHash; } switch (LM_COMPATIBILITY) { case 0: case 1: return getPreNTLMResponse( password, challenge ); case 2: return getNTLMResponse( password, challenge ); case 3: case 4:
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Fri Mar 22 21:10:40 UTC 2019 - 22.5K bytes - Viewed (0)