¡@

Home 

2014/10/15 ¤U¤È 10:12:10

iphone Programming Glossary: nsurlauthenticationmethodhttpbasic

Integrating iPhone Application with Shibboleth

http://stackoverflow.com/questions/1935011/integrating-iphone-application-with-shibboleth

isEqualToString NSURLAuthenticationMethodServerTrust protectionSpace.authenticationMethod isEqualToString NSURLAuthenticationMethodHTTPBasic This implementation for the delegate does two things 1. Respond to challenges for my server's self signed certificate 2... forAuthenticationChallenge challenge else if challenge.protectionSpace.authenticationMethod isEqualToString NSURLAuthenticationMethodHTTPBasic challenge.sender useCredential NSURLCredential credentialWithUser @ USERNAME password @ PASSWORD persistence NSURLCredentialPersistenceNone..

NSURLConnection SSL HTTP Basic Auth

http://stackoverflow.com/questions/2997673/nsurlconnection-ssl-http-basic-auth

NSLog @ Can Auth Secure Requestes return YES else if protectionSpace.authenticationMethod isEqualToString NSURLAuthenticationMethodHTTPBasic NSLog @ Can Auth Basic Requestes return YES return NO NSLog @ Cannot Auth return NO void connection NSURLConnection connection.. challenge else if challenge.protectionSpace.authenticationMethod isEqualToString NSURLAuthenticationMethodHTTPBasic NSLog @ HTTP Auth Challenge Requested NSURLCredential credential NSURLCredential alloc initWithUser @ user password @ pass.. NSURLAuthenticationMethodServerTrust return YES else if protectionSpace.authenticationMethod isEqualToString NSURLAuthenticationMethodHTTPBasic return YES return NO void connection NSURLConnection connection didReceiveAuthenticationChallenge NSURLAuthenticationChallenge..