ChallengeContext

public final class ChallengeContext

The ChallengeContext is a container of challenge mechanisms that get invoked when an authorization challenge is returned from a request to a protected resource.

  • Get or set the session delegate that handles authentication requests. Refer to URLSessionDelegate. Default is nil.

    Declaration

    Swift

    public var serverTrustDelegate: URLSessionDelegate?
  • The timeout interval for the request, in seconds. The default is 30 seconds.

    Declaration

    Swift

    public var timeoutInterval: TimeInterval = 30.0
  • Returns the shared defaults object.

    Declaration

    Swift

    public static let shared = ChallengeContext()
  • Gets the list of registered mechanism identifiers.

    Declaration

    Swift

    public var mechanismIdentifiers: [String]