BasicCredentialStoring
public protocol BasicCredentialStoring : AnyObject
Storing protocol for credential
-
Store the credential for a specific URL
Declaration
Swift
func store(credential: BasicCredential, for: URL) throwsParameters
credentialcredential to store
forURL wich is the key in the store
-
Retrieve the credential for a specific URL
Declaration
Swift
func credential(for: URL) throws -> BasicCredential?Parameters
forURL wich is the key in the store
Return Value
credential that can be use for the given URL
-
Delete the credential for a specific URL
Declaration
Swift
func delete(for: URL) throwsParameters
forURL wich is the key in the store
-
clear()Default implementationClears the credential
Default Implementation
Default implementation of clear method, does nothing.
Declaration
Swift
func clear()