Returns a Boolean value that indicates whether a CFHTTPAuthentication object uses an authentication method that requires a username and a password.
SDKs
- iOS 2.0+
- macOS 10.3+
- Mac Catalyst 13.0+
- tvOS 9.0+
Framework
- CFNetwork
Declaration
Boolean CFHTTPAuthenticationRequiresUserNameAndPassword(CFHTTPAuthentication Ref auth);
Parameters
auth
The CFHTTPAuthentication object to examine.
Return Value
TRUE
if auth
requires a username and password when it is applied to a request; otherwise, FALSE
.