DKKeychain
@objc
public class DKKeychain : NSObject
Provides encryption, decryption, and removal of an authenticated user object in the device keychain.
-
Assigns a string to the
kSecAttrAccessGroupvalue in the Keychain query. Recommended if you need to share user credentials between multiple app targets.Declaration
Swift
@objc public static var accessGroup: String? -
Assigns a string to the
kSecAttrServicevalue in the Keychain query. Used to identify what the Keychain entry is used for.Declaration
Swift
@objc public static var service: String -
Assigns a string to the
kSecAttrAccountvalue in the Keychain query. Used primarily as a key to get the user data from Keychain.Declaration
Swift
@objc public static var userKey: String -
A common set of query parameters used to set, retrieve, and delete
Declaration
Swift
@objc public static var baseQuery: [String : Any] { get } -
The user is stored in the device keychain. Use this variable to securely retrieve the representation of the credentialed user. Note: If the user obect does not contain a
token, the user will not be stored.Declaration
Swift
@objc public static var user: DKUser? { get set }
View on GitHub
Install in Dash
DKKeychain Class Reference