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

    session

    URLSession

    challenge

    URLAuthenticationChallenge

    completionHandler

    Completion 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

    session

    URLSession

    task

    URLSessionTask

    challenge

    URLAuthenticationChallenge

    completionHandler

    Completion callback