BasicCredentialStoring

public protocol BasicCredentialStoring : AnyObject

Storing protocol for credential

  • Store the credential for a specific URL

    Declaration

    Swift

    func store(credential: BasicCredential, for: URL) throws

    Parameters

    credential

    credential to store

    for

    URL wich is the key in the store

  • Retrieve the credential for a specific URL

    Declaration

    Swift

    func credential(for: URL) throws -> BasicCredential?

    Parameters

    for

    URL 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) throws

    Parameters

    for

    URL wich is the key in the store