getDefault

Returns the default credential, or null if no default has been set.

The default credential is set via setDefault. This is a convenience for apps with a "current user" concept — store once with setDefault, retrieve later without tracking the credential ID. To retrieve a credential by a known ID, use get instead.

Return

The default Credential, or null if no default is set or the default credential no longer exists in storage.

See also