The manager of a shared credentials cache.
- iOS 2.0+
- macOS 10.2+
- tvOS 9.0+
- watchOS 2.0+
The shared cache stores and retrieves instances of
URLCredential. You can store password-based credentials permanently, based on the
URLCredential they were created with. Certificate-based credentials are never stored permanently.
URLCredential class is meant to be used as-is, but you can subclass it if you have specific needs, such as screening which credentials are stored.
When overriding methods of this class, be aware that methods that take a
task parameter are preferred to equivalent methods that do not. Therefore, you should override the task-based methods when subclassing, as follows: