• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/WebCore-7600.1.25/platform/network/cf/

Lines Matching refs:challenge

325 void ResourceHandle::didReceiveAuthenticationChallenge(const AuthenticationChallenge& challenge)
331 ASSERT(challenge.cfURLAuthChallengeRef());
332 ASSERT(challenge.authenticationClient() == this); // Should be already set.
337 if (challenge.protectionSpace().isProxy()) {
338 // Cannot use receivedRequestToContinueWithoutCredential(), because current challenge is not yet set.
339 CFURLConnectionUseCredential(d->m_connection.get(), 0, challenge.cfURLAuthChallengeRef());
348 if (challenge.failureResponse().httpStatusCode() == 401)
349 urlToStore = challenge.failureResponse().url();
350 CredentialStorage::set(core(credential.get()), challenge.protectionSpace(), urlToStore);
352 CFURLConnectionUseCredential(d->m_connection.get(), credential.get(), challenge.cfURLAuthChallengeRef());
360 if (!d->m_initialCredential.isEmpty() || challenge.previousFailureCount()) {
364 CredentialStorage::remove(challenge.protectionSpace());
367 if (!challenge.previousFailureCount()) {
368 Credential credential = CredentialStorage::get(challenge.protectionSpace());
371 if (challenge.failureResponse().httpStatusCode() == 401) {
373 CredentialStorage::set(credential, challenge.protectionSpace(), challenge.failureResponse().url());
376 CFURLConnectionUseCredential(d->m_connection.get(), cfCredential.get(), challenge.cfURLAuthChallengeRef());
382 d->m_currentWebChallenge = challenge;
401 void ResourceHandle::receivedCredential(const AuthenticationChallenge& challenge, const Credential& credential)
404 ASSERT(!challenge.isNull());
405 ASSERT(challenge.cfURLAuthChallengeRef());
406 if (challenge != d->m_currentWebChallenge)
411 receivedRequestToContinueWithoutCredential(challenge);
422 if (challenge.failureResponse().httpStatusCode() == 401)
423 urlToStore = challenge.failureResponse().url();
424 CredentialStorage::set(webCredential, challenge.protectionSpace(), urlToStore);
426 CFURLConnectionUseCredential(d->m_connection.get(), cfCredential.get(), challenge.cfURLAuthChallengeRef());
429 CFURLConnectionUseCredential(d->m_connection.get(), cfCredential.get(), challenge.cfURLAuthChallengeRef());
435 void ResourceHandle::receivedRequestToContinueWithoutCredential(const AuthenticationChallenge& challenge)
438 ASSERT(!challenge.isNull());
439 ASSERT(challenge.cfURLAuthChallengeRef());
440 if (challenge != d->m_currentWebChallenge)
443 CFURLConnectionUseCredential(d->m_connection.get(), 0, challenge.cfURLAuthChallengeRef());
448 void ResourceHandle::receivedCancellation(const AuthenticationChallenge& challenge)
451 if (challenge != d->m_currentWebChallenge)
455 client()->receivedCancellation(this, challenge);
458 void ResourceHandle::receivedRequestToPerformDefaultHandling(const AuthenticationChallenge& challenge)
461 ASSERT(!challenge.isNull());
462 ASSERT(challenge.cfURLAuthChallengeRef());
463 if (challenge != d->m_currentWebChallenge)
466 CFURLConnectionPerformDefaultHandlingForChallenge(d->m_connection.get(), challenge.cfURLAuthChallengeRef());
471 void ResourceHandle::receivedChallengeRejection(const AuthenticationChallenge& challenge)
474 ASSERT(!challenge.isNull());
475 ASSERT(challenge.cfURLAuthChallengeRef());
476 if (challenge != d->m_currentWebChallenge)
479 CFURLConnectionRejectChallenge(d->m_connection.get(), challenge.cfURLAuthChallengeRef());