UrlSessionCtHelper

class UrlSessionCtHelper(configuration: <Error class: unknown class>, verifier: IosCertificateTransparencyVerifier)(source)

Helper for integrating CT verification with URLSession's authentication challenge handling.

Usage in a URLSessionDelegate:

override fun URLSession(
session: NSURLSession,
didReceiveChallenge: NSURLAuthenticationChallenge,
completionHandler: (NSURLSessionAuthChallengeDisposition, NSURLCredential?) -> Unit,
) {
val (disposition, credential) = helper.handleServerTrustChallenge(didReceiveChallenge)
completionHandler(disposition, credential)
}

Constructors

Link copied to clipboard
constructor(configuration: <Error class: unknown class>, verifier: IosCertificateTransparencyVerifier)

Functions

Link copied to clipboard
fun handleServerTrustChallenge(challenge: <Error class: unknown class>): <Error class: unknown class><<Error class: unknown class>, <Error class: unknown class>?>

Evaluate a server trust authentication challenge with CT verification.