DefaultSaltProvider
public class DefaultSaltProvider : SaltProviding
The default implementation of SaltProviding protocol. This class makes use of UUID() to generate the salt and KeychainStorage class to store the salts.
-
Undocumented
Declaration
Swift
public init(defaultSalt: String? = nil, saltStore: DataStoring? = nil, keychainAccessGroup: String = "") throws -
Default salt store required to have accessGroup as it is meant to restrict the access to keychain item. Every keychain item belongs to a prticular accessGroup. So, update or access to a keychain item is possible through valid accessGroup only.
Declaration
Swift
public func generateSalt(for entity: String?) throws -> String -
Declaration
Swift
public func getSalt(for entity: String?) throws -> String? -
Declaration
Swift
public func saltExists(for entity: String?) throws -> Bool -
Declaration
Swift
public func clearSalt(for entity: String?) -
Declaration
Swift
public func reset()