ios - NSURLConnection willSendRequestForAuthenticationChallenge persistence -


the (soon deprecated) nsurlconnectiondelegate allows handle tls trust challenge so:

-(void)connection:(nsurlconnection *)connection willsendrequestforauthenticationchallenge(nsurlauthenticationchallenge *)challenge {     if ([challenge.protectionspace.authenticationmethod isequaltostring:nsurlauthenticationmethodservertrust])         [challenge.sender performdefaulthandlingforauthenticationchallenge:challenge]; } 

assuming same x509 certificate being presented same server, testing shows effect of method cached duration of application execution. method not hit again.

is there way force application forget effect of method after handling has occurred, such subsequent hits same web service force method called?

i think i'm using [challenge.sender cancelauthenticationchallenge:...].


Comments

Popular posts from this blog

java - Static nested class instance -

c# - Bluetooth LE CanUpdate Characteristic property -

JavaScript - Replace variable from string in all occurrences -