Contents

use(_:for:)

Attempt to use a given credential for a given authentication challenge.

Declaration

func use(_ credential: URLCredential, for challenge: URLAuthenticationChallenge)

Parameters

  • credential:

    The credential to use for authentication.

  • challenge:

    The challenge for which to use credential.

Discussion

This method has no effect if it is called with an authentication challenge that has already been handled.

See Also

Protocol Methods