Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 57 for Challenge (0.2 sec)

  1. 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>,
    ) {
      /**
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.5K bytes
    - Viewed (0)
  2. 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
          }
    
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.2K bytes
    - Viewed (0)
  3. 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")
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 16.6K bytes
    - Viewed (0)
  4. src/main/java/jcifs/smb/NtlmChallenge.java

        /**
         * Challenge
         */
        public byte[] challenge;
    
        /**
         * Server address
         */
        public UniAddress dc;
    
    
        /**
         * @param challenge
         * @param dc
         */
        public NtlmChallenge ( byte[] challenge, UniAddress dc ) {
            this.challenge = challenge;
            this.dc = dc;
        }
    
    
        @Override
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 1.6K bytes
    - Viewed (0)
  5. 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:
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 22.5K bytes
    - Viewed (0)
  6. 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());
        }
    
    
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Dec 16 10:38:43 GMT 2018
    - 4.8K bytes
    - Viewed (0)
  7. 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)
          }
        }
      }
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 7.2K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb1/http/NtlmSsp.java

         * @param resp The response.
         * @param challenge The domain controller challenge.
         * @throws IOException If an IO error occurs.
         * @throws ServletException If an error occurs.
         */
        public NtlmPasswordAuthentication doAuthentication(
                HttpServletRequest req, HttpServletResponse resp, byte[] challenge)
                        throws IOException, ServletException {
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 4.4K bytes
    - Viewed (1)
  9. 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() + "]";
        }
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Fri Mar 22 21:10:40 GMT 2019
    - 1.4K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/NtlmUtil.java

         *            The user's password.
         * @param challenge
         *            The server challenge.
         * @param clientChallenge
         *            The client challenge (nonce).
         * @return the calculated response
         * @throws GeneralSecurityException
         */
        public static byte[] getLMv2Response ( String domain, String user, String password, byte[] challenge, byte[] clientChallenge )
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Tue Jul 07 12:07:20 GMT 2020
    - 9.7K bytes
    - Viewed (0)
Back to top