Instance Property

proposedCredential

The proposed credential for this challenge.

Declaration

@NSCopying var proposedCredential: URLCredential? { get }

Discussion

This method returns nil if there is no default credential for this challenge.

If you have previously attempted to authenticate and failed, this method returns the most recent failed credential.

If the proposed credential is not nil and returns true when you call its hasPassword method, then the credential is ready to use as-is. If the proposed credential’s hasPassword method returns false, then the credential provides a default user name, and the client must prompt the user for a corresponding password.

See Also

Getting Properties of Previous Authentication Attempts

var failureResponse: URLResponse?

The URL response object representing the last authentication failure.

var previousFailureCount: Int

The receiver’s count of failed authentication attempts.