Gets an authentication information’s namespace.
SDKs
- iOS 2.0+
- macOS 10.2+
- Mac Catalyst 13.0+
- tvOS 9.0+
Framework
- CFNetwork
Declaration
CFString Ref CFHTTPAuthenticationCopyRealm(CFHTTPAuthentication Ref auth);
Parameters
auth
The CFHTTPAuthentication object to examine.
Return Value
The namespace, if there is one; otherwise NULL
. Ownership follows the The Create Rule.
Discussion
Some authentication methods provide a namespace, and it is usually used to prompt the user for a name and password.