DefaultBasicCredentialDiscovery

public class DefaultBasicCredentialDiscovery : BasicCredentialDiscovery

Default implementation of BasicCredentialDiscovery

  • Designated initializer

    Declaration

    Swift

    public init()
  • The view controller used to present the navigation controller. By default it searches the topmost view controller automatically at the call of the property. It is also settable by the application it is necessary.

    Declaration

    Swift

    public var presentingViewController: UIViewController? { get set }
  • Presents a UIAlertController with the host that requires the basic credentials. The given username and password is packed into a BasicCredential type.

    Declaration

    Swift

    public func provideBasicCredential(for url: URL, challenge: URLAuthenticationChallenge, completionHandler: @escaping (BasicCredential?, Error?) -> Void)

    Parameters

    url

    From the URL the domain will be displayed on the UI

    completionHandler

    The completion handler that gets invoked at the end of the download process with the received BasicCredential or BasicCredentialDiscoveryError in case of failure.