UserIdentityStorage
open class UserIdentityStorage : UserIdentityStoring
Default implementation for the UserIdentityStoring.
-
The store to use when handling
UserIdentitys.Declaration
Swift
open var store: CodableStoring -
This closure defines the key for storing the
UserIdentityin theCodableStoringstore.Declaration
Swift
open var keyHandler: (URL) -> String -
Default key prefix for storing
UserIdentitys.Declaration
Swift
public static let keyPrefix: String -
Instantiates the
UserIdentityStoringbased on aCodableStoring. It will use theCodableStoringto store and retrieve theUserIdentitys.Declaration
Swift
public init(store: CodableStoring, keyHandler: @escaping (URL) -> String = UserIdentityStorage.key)Parameters
storeThe store to use when handling
UserIdentitys.keyHandlerThis closure defines the key for storing the
UserIdentityin theCodableStoringstore.
-
Declaration
Swift
public func store(identity: Data, for url: URL) throws -
Declaration
Swift
public func identity(for url: URL) throws -> Data? -
Declaration
Swift
public func delete(for url: URL) throws
-
Default key handler.
Declaration
Swift
public class func key(for url: URL) -> String