Contents

URLCredentialStorage

The manager of a shared credentials cache.

Declaration

class URLCredentialStorage

Overview

The shared cache stores and retrieves instances of URLCredential. You can store password-based credentials permanently, based on the URLCredential.Persistence they were created with. Certificate-based credentials are never stored permanently.

Subclassing notes

The URLCredentialStorage 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:

Topics

Getting the credential storage

Getting and setting default credentials

Adding and removing credentials

Retrieving credentials

Tracking credential storage changes

See Also

Authentication and credentials