Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 77 for Challenge (0.34 sec)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Challenge.kt

    import java.util.Collections.singletonMap
    import java.util.Locale.US
    import kotlin.text.Charsets.ISO_8859_1
    import okhttp3.internal.unmodifiable
    
    /**
     * 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 Sep 05 11:42:10 UTC 2025
    - Last Modified: Tue May 27 15:01:35 UTC 2025
    - 3.5K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/smb1/NtlmChallenge.java

    /**
     * Represents an NTLM authentication challenge in SMB1 protocol.
     */
    public final class NtlmChallenge implements Serializable {
    
        /**
         * The NTLM challenge bytes received from the server.
         */
        public byte[] challenge;
        /**
         * The domain controller address that issued the challenge.
         */
        public UniAddress dc;
    
        NtlmChallenge(final byte[] challenge, final UniAddress dc) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/ntlmssp/Type2Message.java

            parse(material);
        }
    
        /**
         * Returns the challenge for this message.
         *
         * @return A <code>byte[]</code> containing the challenge.
         */
        public byte[] getChallenge() {
            return challenge;
        }
    
        /**
         * Sets the challenge for this message.
         *
         * @param challenge The challenge from the domain controller/server.
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 13K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/NtlmChallenge.java

        /**
         * Challenge
         */
        public byte[] challenge;
    
        /**
         * Server address
         */
        public UniAddress dc;
    
        /**
         * Creates a new NTLM challenge with the specified parameters.
         * @param challenge the NTLM challenge bytes
         * @param dc the domain controller address
         */
        public NtlmChallenge(final byte[] challenge, final UniAddress dc) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 1.8K bytes
    - Viewed (0)
  5. 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 Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 14.4K bytes
    - Viewed (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/HeadersChallengesTest.kt

        assertThat(challenges[0].realm).isNull()
        assertThat(challenges[0].authParams).isEqualTo(emptyMap<Any, Any>())
      }
    
      @Test fun basicChallenge() {
        val headers =
          Headers
            .Builder()
            .add("WWW-Authenticate: Basic realm=\"protected area\"")
            .build()
        assertThat(headers.parseChallenges("WWW-Authenticate"))
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 16.8K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb/NtlmUtilTest.java

            // Arrange
            String password = "password";
            byte[] challenge = hex("1122334455667788");
    
            // Act
            byte[] r1 = NtlmUtil.getNTLMResponse(password, challenge);
            byte[] r2 = NtlmUtil.getNTLMResponse(NtlmUtil.getNTHash(password), challenge);
    
            // Assert
            assertArrayEquals(r2, r1);
            assertEquals(24, r1.length);
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 12K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/NtlmUtil.java

         * @param password the password to hash
         * @param challenge the server challenge bytes
         * @return the calculated response
         * @throws GeneralSecurityException if a cryptographic error occurs
         */
        public static byte[] getNTLMResponse(final String password, final byte[] challenge) throws GeneralSecurityException {
            return getNTLMResponse(getNTHash(password), challenge);
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.1K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/smb1/NtlmPasswordAuthentication.java

                return getPreNTLMResponse(password, challenge);
            }
        }
    
        /**
         * Computes the 24 byte Unicode password hash given the 8 byte server challenge.
         *
         * @param challenge the server challenge bytes
         * @return the Unicode password hash
         */
        public byte[] getUnicodeHash(final byte[] challenge) {
            if (hashesExternal) {
                return unicodeHash;
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 26.7K bytes
    - Viewed (0)
  10. okhttp/src/commonJvmAndroid/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 Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 3.2K bytes
    - Viewed (0)
Back to top