FWKeychainManager


@interface FWKeychainManager : NSObject

Keychain管理器

  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, class, readonly, strong) FWKeychainManager * _Nonnull sharedInstance
  • 公用对象

    Declaration

    Objective-C

    - (nonnull instancetype)init;
  • 分组对象

    Declaration

    Objective-C

    - (nonnull instancetype)initWithGroup:(NSString *_Nullable)group;
  • 读取String数据

    Declaration

    Objective-C

    - (NSString *_Nullable)passwordForService:(NSString *_Nullable)service
                                      account:(NSString *_Nullable)account;
  • 读取Data数据

    Declaration

    Objective-C

    - (NSData *_Nullable)passwordDataForService:(NSString *_Nullable)service
                                        account:(NSString *_Nullable)account;
  • 读取Object数据

    Declaration

    Objective-C

    - (id _Nullable)passwordObjectForService:(NSString *_Nullable)service
                                     account:(NSString *_Nullable)account;
  • 保存String数据

    Declaration

    Objective-C

    - (BOOL)setPassword:(NSString *_Nonnull)password
             forService:(NSString *_Nullable)service
                account:(NSString *_Nullable)account;
  • 保存Data数据

    Declaration

    Objective-C

    - (BOOL)setPasswordData:(NSData *_Nonnull)passwordData
                 forService:(NSString *_Nullable)service
                    account:(NSString *_Nullable)account;
  • 保存Object数据

    Declaration

    Objective-C

    - (BOOL)setPasswordObject:(id _Nonnull)passwordObject
                   forService:(NSString *_Nullable)service
                      account:(NSString *_Nullable)account;
  • 删除数据

    Declaration

    Objective-C

    - (BOOL)deletePasswordForService:(NSString *_Nullable)service
                             account:(NSString *_Nullable)account;