Constants that specify how long the credential will be kept.
- iOS 2.0+
- macOS 10.2+
- tvOS 9.0+
- watchOS 2.0+
- Mac Catalyst 13.0+Beta
In iOS, credentials are stored in the app’s keychain, and can be accessed only by that app (and other apps in the same keychain access group, where applicable).
In macOS, credentials are stored in the user’s keychain. The credential’s initial access control list (ACL) allows access only by that app. However, other apps can see that a password exists for a given host, port, and realm combination, and can request that the user grant permission to use that credential.
The credential should not be stored.
The credential should be stored permanently in the keychain, and in addition should be distributed to other devices based on the owning Apple ID.
Creating a Credential
Creates a URL credential instance for server trust authentication, initialized with a accepted trust.
This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.Learn more about using Apple's beta software