FRURLSessionSSLPinningHandler
public class FRURLSessionSSLPinningHandler : FRURLSessionHandler
This class implements URLSessionTaskDelegate protocol to handle HTTP redirect and SSL Pinning
-
Declaration
Swift
public init(frSecurityConfiguration: FRSecurityConfiguration?) -
URLSessionDelegate method for Authentication Challenge
Declaration
Swift
public override func urlSession(_ session: URLSession, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void)Parameters
sessionURLSession
challengeURLAuthenticationChallenge
completionHandlerCompletion callback
-
URLSessionTaskDelegate method for Authentication Challenge
Declaration
Swift
public override func urlSession(_ session: URLSession, task: URLSessionTask, didReceive challenge: URLAuthenticationChallenge, completionHandler: @escaping (URLSession.AuthChallengeDisposition, URLCredential?) -> Void)Parameters
sessionURLSession
taskURLSessionTask
challengeURLAuthenticationChallenge
completionHandlerCompletion callback
View on GitHub