AWSUICKeyChainStore

Objective-C

@interface AWSUICKeyChainStore : NSObject

@property (nonatomic, readonly) AWSUICKeyChainStoreItemClass itemClass;

@property (nonatomic, readonly, nullable) NSString *service;
@property (nonatomic, readonly, nullable) NSString *accessGroup;

@property (nonatomic, readonly, nullable) NSURL *server;
@property (nonatomic, readonly) AWSUICKeyChainStoreProtocolType protocolType;
@property (nonatomic, readonly) AWSUICKeyChainStoreAuthenticationType authenticationType;

@property (nonatomic) AWSUICKeyChainStoreAccessibility accessibility;
@property (nonatomic, readonly) AWSUICKeyChainStoreAuthenticationPolicy authenticationPolicy
__OSX_AVAILABLE_STARTING(__MAC_10_10, __IPHONE_8_0);

@property (nonatomic) BOOL synchronizable;

@property (nonatomic, nullable) NSString *authenticationPrompt
__OSX_AVAILABLE_STARTING(__MAC_NA, __IPHONE_8_0);

@property (nonatomic, readonly, nullable) NSArray UIC_KEY_TYPE *allKeys;
@property (nonatomic, readonly, nullable) NSArray *allItems;

+ (NSString *)defaultService;
+ (void)setDefaultService:(NSString *)defaultService;

+ (AWSUICKeyChainStore *)keyChainStore;
+ (AWSUICKeyChainStore *)keyChainStoreWithService:(nullable NSString *)service;
+ (AWSUICKeyChainStore *)keyChainStoreWithService:(nullable NSString *)service accessGroup:(nullable NSString *)accessGroup;

+ (AWSUICKeyChainStore *)keyChainStoreWithServer:(NSURL *)server protocolType:(AWSUICKeyChainStoreProtocolType)protocolType;
+ (AWSUICKeyChainStore *)keyChainStoreWithServer:(NSURL *)server protocolType:(AWSUICKeyChainStoreProtocolType)protocolType authenticationType:(AWSUICKeyChainStoreAuthenticationType)authenticationType;

- (instancetype)init;
- (instancetype)initWithService:(nullable NSString *)service;
- (instancetype)initWithService:(nullable NSString *)service accessGroup:(nullable NSString *)accessGroup;

- (instancetype)initWithServer:(NSURL *)server protocolType:(AWSUICKeyChainStoreProtocolType)protocolType;
- (instancetype)initWithServer:(NSURL *)server protocolType:(AWSUICKeyChainStoreProtocolType)protocolType authenticationType:(AWSUICKeyChainStoreAuthenticationType)authenticationType;

+ (nullable NSString *)stringForKey:(NSString *)key;
+ (nullable NSString *)stringForKey:(NSString *)key service:(nullable NSString *)service;
+ (nullable NSString *)stringForKey:(NSString *)key service:(nullable NSString *)service accessGroup:(nullable NSString *)accessGroup;
+ (BOOL)setString:(nullable NSString *)value forKey:(NSString *)key;
+ (BOOL)setString:(nullable NSString *)value forKey:(NSString *)key service:(nullable NSString *)service;
+ (BOOL)setString:(nullable NSString *)value forKey:(NSString *)key service:(nullable NSString *)service accessGroup:(nullable NSString *)accessGroup;

+ (nullable NSData *)dataForKey:(NSString *)key;
+ (nullable NSData *)dataForKey:(NSString *)key service:(nullable NSString *)service;
+ (nullable NSData *)dataForKey:(NSString *)key service:(nullable NSString *)service accessGroup:(nullable NSString *)accessGroup;
+ (BOOL)setData:(nullable NSData *)data forKey:(NSString *)key;
+ (BOOL)setData:(nullable NSData *)data forKey:(NSString *)key service:(nullable NSString *)service;
+ (BOOL)setData:(nullable NSData *)data forKey:(NSString *)key service:(nullable NSString *)service accessGroup:(nullable NSString *)accessGroup;

- (BOOL)contains:(nullable NSString *)key;

- (BOOL)setString:(nullable NSString *)string forKey:(nullable NSString *)key;
- (BOOL)setString:(nullable NSString *)string forKey:(nullable NSString *)key label:(nullable NSString *)label comment:(nullable NSString *)comment;
- (nullable NSString *)stringForKey:(NSString *)key;

- (BOOL)setData:(nullable NSData *)data forKey:(NSString *)key;
- (BOOL)setData:(nullable NSData *)data forKey:(NSString *)key label:(nullable NSString *)label comment:(nullable NSString *)comment;
- (nullable NSData *)dataForKey:(NSString *)key;

+ (BOOL)removeItemForKey:(NSString *)key;
+ (BOOL)removeItemForKey:(NSString *)key service:(nullable NSString *)service;
+ (BOOL)removeItemForKey:(NSString *)key service:(nullable NSString *)service accessGroup:(nullable NSString *)accessGroup;

+ (BOOL)removeAllItems;
+ (BOOL)removeAllItemsForService:(nullable NSString *)service;
+ (BOOL)removeAllItemsForService:(nullable NSString *)service accessGroup:(nullable NSString *)accessGroup;

- (BOOL)removeItemForKey:(NSString *)key;

- (BOOL)removeAllItems;

- (nullable NSString *)objectForKeyedSubscript:(NSString<NSCopying> *)key;
- (void)setObject:(nullable NSString *)obj forKeyedSubscript:(NSString<NSCopying> *)key;

+ (nullable NSArray UIC_KEY_TYPE *)allKeysWithItemClass:(AWSUICKeyChainStoreItemClass)itemClass;
- (nullable NSArray UIC_KEY_TYPE *)allKeys;

+ (nullable NSArray *)allItemsWithItemClass:(AWSUICKeyChainStoreItemClass)itemClass;
- (nullable NSArray *)allItems;

- (void)setAccessibility:(AWSUICKeyChainStoreAccessibility)accessibility authenticationPolicy:(AWSUICKeyChainStoreAuthenticationPolicy)authenticationPolicy
__OSX_AVAILABLE_STARTING(__MAC_10_10, __IPHONE_8_0);

#if TARGET_OS_IOS
- (void)sharedPasswordWithCompletion:(nullable void (^)(NSString * __nullable account, NSString * __nullable password, NSError * __nullable error))completion;
- (void)sharedPasswordForAccount:(NSString *)account completion:(nullable void (^)(NSString * __nullable password, NSError * __nullable error))completion;

- (void)setSharedPassword:(nullable NSString *)password forAccount:(NSString *)account completion:(nullable void (^)(NSError * __nullable error))completion;
- (void)removeSharedPasswordForAccount:(NSString *)account completion:(nullable void (^)(NSError * __nullable error))completion;

+ (void)requestSharedWebCredentialWithCompletion:(nullable void (^)(NSArray UIC_CREDENTIAL_TYPE *credentials, NSError * __nullable error))completion;
+ (void)requestSharedWebCredentialForDomain:(nullable NSString *)domain account:(nullable NSString *)account completion:(nullable void (^)(NSArray UIC_CREDENTIAL_TYPE *credentials, NSError * __nullable error))completion;

+ (NSString *)generatePassword;

#endif

/// Migrate the existing items in keychain to the current accessibility
///
/// Invoke this method if you have changed the keychain accessibility but there are already existing keychain items
/// stored with a different accessibility setting.
- (void)migrateToCurrentAccessibility;

@end

Swift

class AWSUICKeyChainStore : NSObject

Undocumented

  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, readonly) AWSUICKeyChainStoreItemClass itemClass

    Swift

    var itemClass: AWSUICKeyChainStoreItemClass { get }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *service

    Swift

    var service: String? { get }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSString *accessGroup

    Swift

    var accessGroup: String? { get }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSURL *server

    Swift

    var server: URL? { get }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, readonly) AWSUICKeyChainStoreProtocolType protocolType

    Swift

    var protocolType: AWSUICKeyChainStoreProtocolType { get }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, readonly) AWSUICKeyChainStoreAuthenticationType authenticationType

    Swift

    var authenticationType: AWSUICKeyChainStoreAuthenticationType { get }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic) AWSUICKeyChainStoreAccessibility accessibility

    Swift

    var accessibility: AWSUICKeyChainStoreAccessibility { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, readonly) AWSUICKeyChainStoreAuthenticationPolicy authenticationPolicy

    Swift

    var authenticationPolicy: AWSUICKeyChainStoreAuthenticationPolicy { get }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic) BOOL synchronizable

    Swift

    var synchronizable: Bool { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, nullable) NSString *authenticationPrompt

    Swift

    var authenticationPrompt: String? { get set }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSArray UIC_KEY_TYPE *allKeys

    Swift

    var allKeys: [String]? { get }
  • Undocumented

    Declaration

    Objective-C

    @property (nonatomic, readonly, nullable) NSArray *allItems

    Swift

    var allItems: [Any]? { get }
  • Undocumented

    Declaration

    Objective-C

    + (NSString *)defaultService;

    Swift

    class func defaultService() -> String
  • Undocumented

    Declaration

    Objective-C

    + (void)setDefaultService:(NSString *)defaultService;

    Swift

    class func setDefaultService(_ defaultService: String)
  • Undocumented

    Declaration

    Objective-C

    + (AWSUICKeyChainStore *)keyChainStore;
  • Undocumented

    Declaration

    Objective-C

    + (AWSUICKeyChainStore *)keyChainStoreWithService:(nullable NSString *)service;
  • Undocumented

    Declaration

    Objective-C

    + (AWSUICKeyChainStore *)keyChainStoreWithService:(nullable NSString *)service accessGroup:(nullable NSString *)accessGroup;
  • Undocumented

    Declaration

    Objective-C

    + (AWSUICKeyChainStore *)keyChainStoreWithServer:(NSURL *)server protocolType:(AWSUICKeyChainStoreProtocolType)protocolType;
  • Undocumented

    Declaration

    Objective-C

    + (AWSUICKeyChainStore *)keyChainStoreWithServer:(NSURL *)server protocolType:(AWSUICKeyChainStoreProtocolType)protocolType authenticationType:(AWSUICKeyChainStoreAuthenticationType)authenticationType;
  • Undocumented

    Declaration

    Objective-C

    - (instancetype)init;

    Swift

    init()
  • Undocumented

    Declaration

    Objective-C

    - (instancetype)initWithService:(nullable NSString *)service;

    Swift

    init(service: String?)
  • Undocumented

    Declaration

    Objective-C

    - (instancetype)initWithService:(nullable NSString *)service accessGroup:(nullable NSString *)accessGroup;

    Swift

    init(service: String?, accessGroup: String?)
  • Undocumented

    Declaration

    Objective-C

    - (instancetype)initWithServer:(NSURL *)server protocolType:(AWSUICKeyChainStoreProtocolType)protocolType;

    Swift

    init(server: URL, protocolType: AWSUICKeyChainStoreProtocolType)
  • Undocumented

    Declaration

    Objective-C

    - (instancetype)initWithServer:(NSURL *)server protocolType:(AWSUICKeyChainStoreProtocolType)protocolType authenticationType:(AWSUICKeyChainStoreAuthenticationType)authenticationType;

    Swift

    init(server: URL, protocolType: AWSUICKeyChainStoreProtocolType, authenticationType: AWSUICKeyChainStoreAuthenticationType)
  • Undocumented

    Declaration

    Objective-C

    + (nullable NSString *)stringForKey:(NSString *)key;

    Swift

    class func string(forKey key: String) -> String?
  • Undocumented

    Declaration

    Objective-C

    + (nullable NSString *)stringForKey:(NSString *)key service:(nullable NSString *)service;

    Swift

    class func string(forKey key: String, service: String?) -> String?
  • Undocumented

    Declaration

    Objective-C

    + (nullable NSString *)stringForKey:(NSString *)key service:(nullable NSString *)service accessGroup:(nullable NSString *)accessGroup;

    Swift

    class func string(forKey key: String, service: String?, accessGroup: String?) -> String?
  • Undocumented

    Declaration

    Objective-C

    + (BOOL)setString:(nullable NSString *)value forKey:(NSString *)key;

    Swift

    class func setString(_ value: String?, forKey key: String) -> Bool
  • Undocumented

    Declaration

    Objective-C

    + (BOOL)setString:(nullable NSString *)value forKey:(NSString *)key service:(nullable NSString *)service;

    Swift

    class func setString(_ value: String?, forKey key: String, service: String?) -> Bool
  • Undocumented

    Declaration

    Objective-C

    + (BOOL)setString:(nullable NSString *)value forKey:(NSString *)key service:(nullable NSString *)service accessGroup:(nullable NSString *)accessGroup;

    Swift

    class func setString(_ value: String?, forKey key: String, service: String?, accessGroup: String?) -> Bool
  • Undocumented

    Declaration

    Objective-C

    + (nullable NSData *)dataForKey:(NSString *)key;

    Swift

    class func data(forKey key: String) -> Data?
  • Undocumented

    Declaration

    Objective-C

    + (nullable NSData *)dataForKey:(NSString *)key service:(nullable NSString *)service;

    Swift

    class func data(forKey key: String, service: String?) -> Data?
  • Undocumented

    Declaration

    Objective-C

    + (nullable NSData *)dataForKey:(NSString *)key service:(nullable NSString *)service accessGroup:(nullable NSString *)accessGroup;

    Swift

    class func data(forKey key: String, service: String?, accessGroup: String?) -> Data?
  • Undocumented

    Declaration

    Objective-C

    + (BOOL)setData:(nullable NSData *)data forKey:(NSString *)key;

    Swift

    class func setData(_ data: Data?, forKey key: String) -> Bool
  • Undocumented

    Declaration

    Objective-C

    + (BOOL)setData:(nullable NSData *)data forKey:(NSString *)key service:(nullable NSString *)service;

    Swift

    class func setData(_ data: Data?, forKey key: String, service: String?) -> Bool
  • Undocumented

    Declaration

    Objective-C

    + (BOOL)setData:(nullable NSData *)data forKey:(NSString *)key service:(nullable NSString *)service accessGroup:(nullable NSString *)accessGroup;

    Swift

    class func setData(_ data: Data?, forKey key: String, service: String?, accessGroup: String?) -> Bool
  • Undocumented

    Declaration

    Objective-C

    - (BOOL)contains:(nullable NSString *)key;

    Swift

    func contains(_ key: String?) -> Bool
  • Undocumented

    Declaration

    Objective-C

    - (BOOL)setString:(nullable NSString *)string forKey:(nullable NSString *)key;

    Swift

    func setString(_ string: String?, forKey key: String?) -> Bool
  • Undocumented

    Declaration

    Objective-C

    - (BOOL)setString:(nullable NSString *)string forKey:(nullable NSString *)key label:(nullable NSString *)label comment:(nullable NSString *)comment;

    Swift

    func setString(_ string: String?, forKey key: String?, label: String?, comment: String?) -> Bool
  • Undocumented

    Declaration

    Objective-C

    - (nullable NSString *)stringForKey:(NSString *)key;

    Swift

    func string(forKey key: String) -> String?
  • Undocumented

    Declaration

    Objective-C

    - (BOOL)setData:(nullable NSData *)data forKey:(NSString *)key;

    Swift

    func setData(_ data: Data?, forKey key: String) -> Bool
  • Undocumented

    Declaration

    Objective-C

    - (BOOL)setData:(nullable NSData *)data forKey:(NSString *)key label:(nullable NSString *)label comment:(nullable NSString *)comment;

    Swift

    func setData(_ data: Data?, forKey key: String, label: String?, comment: String?) -> Bool
  • Undocumented

    Declaration

    Objective-C

    - (nullable NSData *)dataForKey:(NSString *)key;

    Swift

    func data(forKey key: String) -> Data?
  • Undocumented

    Declaration

    Objective-C

    + (BOOL)removeItemForKey:(NSString *)key;

    Swift

    class func removeItem(forKey key: String) -> Bool
  • Undocumented

    Declaration

    Objective-C

    + (BOOL)removeItemForKey:(NSString *)key service:(nullable NSString *)service;

    Swift

    class func removeItem(forKey key: String, service: String?) -> Bool
  • Undocumented

    Declaration

    Objective-C

    + (BOOL)removeItemForKey:(NSString *)key service:(nullable NSString *)service accessGroup:(nullable NSString *)accessGroup;

    Swift

    class func removeItem(forKey key: String, service: String?, accessGroup: String?) -> Bool
  • Undocumented

    Declaration

    Objective-C

    + (BOOL)removeAllItems;

    Swift

    class func removeAllItems() -> Bool
  • Undocumented

    Declaration

    Objective-C

    + (BOOL)removeAllItemsForService:(nullable NSString *)service;

    Swift

    class func removeAllItems(forService service: String?) -> Bool
  • Undocumented

    Declaration

    Objective-C

    + (BOOL)removeAllItemsForService:(nullable NSString *)service accessGroup:(nullable NSString *)accessGroup;

    Swift

    class func removeAllItems(forService service: String?, accessGroup: String?) -> Bool
  • Undocumented

    Declaration

    Objective-C

    - (BOOL)removeItemForKey:(NSString *)key;

    Swift

    func removeItem(forKey key: String) -> Bool
  • Undocumented

    Declaration

    Objective-C

    - (BOOL)removeAllItems;

    Swift

    func removeAllItems() -> Bool
  • Undocumented

    Declaration

    Objective-C

    - (nullable NSString *)objectForKeyedSubscript:(NSString<NSCopying> *)key;

    Swift

    subscript(key: String) -> String? { get set }
  • Undocumented

    Declaration

    Objective-C

    - (void)setObject:(nullable NSString *)obj forKeyedSubscript:(NSString<NSCopying> *)key;
  • Undocumented

    Declaration

    Objective-C

    + (nullable NSArray UIC_KEY_TYPE *)allKeysWithItemClass:(AWSUICKeyChainStoreItemClass)itemClass;

    Swift

    class func allKeys(with itemClass: AWSUICKeyChainStoreItemClass) -> [String]?
  • Undocumented

    Declaration

    Objective-C

    + (nullable NSArray *)allItemsWithItemClass:(AWSUICKeyChainStoreItemClass)itemClass;

    Swift

    class func allItems(with itemClass: AWSUICKeyChainStoreItemClass) -> [Any]?
  • Undocumented

    Declaration

    Objective-C

    - (void)setAccessibility:(AWSUICKeyChainStoreAccessibility)accessibility authenticationPolicy:(AWSUICKeyChainStoreAuthenticationPolicy)authenticationPolicy
    __OSX_AVAILABLE_STARTING(__MAC_10_10, __IPHONE_8_0);

    Swift

    func setAccessibility(_ accessibility: AWSUICKeyChainStoreAccessibility, authenticationPolicy: AWSUICKeyChainStoreAuthenticationPolicy)
  • Undocumented

    Declaration

    Objective-C

    - (void)sharedPasswordWithCompletion:(nullable void (^)(NSString * __nullable account, NSString * __nullable password, NSError * __nullable error))completion;

    Swift

    func sharedPassword() async throws -> (String, String)
  • Undocumented

    Declaration

    Objective-C

    - (void)sharedPasswordForAccount:(NSString *)account completion:(nullable void (^)(NSString * __nullable password, NSError * __nullable error))completion;

    Swift

    func sharedPassword(forAccount account: String) async throws -> String
  • Undocumented

    Declaration

    Objective-C

    - (void)setSharedPassword:(nullable NSString *)password forAccount:(NSString *)account completion:(nullable void (^)(NSError * __nullable error))completion;

    Swift

    func setSharedPassword(_ password: String?, forAccount account: String) async throws
  • Undocumented

    Declaration

    Objective-C

    - (void)removeSharedPasswordForAccount:(NSString *)account completion:(nullable void (^)(NSError * __nullable error))completion;

    Swift

    func removeSharedPassword(forAccount account: String) async throws
  • Undocumented

    Declaration

    Objective-C

    + (void)requestSharedWebCredentialWithCompletion:(nullable void (^)(NSArray UIC_CREDENTIAL_TYPE *credentials, NSError * __nullable error))completion;

    Swift

    class func requestSharedWebCredential() async throws -> [[String : String]]
  • Undocumented

    Declaration

    Objective-C

    + (void)requestSharedWebCredentialForDomain:(nullable NSString *)domain account:(nullable NSString *)account completion:(nullable void (^)(NSArray UIC_CREDENTIAL_TYPE *credentials, NSError * __nullable error))completion;

    Swift

    class func requestSharedWebCredential(forDomain domain: String?, account: String?) async throws -> [[String : String]]
  • Undocumented

    Declaration

    Objective-C

    + (NSString *)generatePassword;

    Swift

    class func generatePassword() -> String
  • Migrate the existing items in keychain to the current accessibility

    Invoke this method if you have changed the keychain accessibility but there are already existing keychain items stored with a different accessibility setting.

    Declaration

    Objective-C

    - (void)migrateToCurrentAccessibility;

    Swift

    func migrateToCurrentAccessibility()

ErrorHandling

  • Undocumented

    Declaration

    Objective-C

    + (nullable NSString *)stringForKey:(NSString *)key error:(NSError * __nullable __autoreleasing * __nullable)error;

    Swift

    class func string(forKey key: String, error: ()) throws -> String
  • Undocumented

    Declaration

    Objective-C

    + (nullable NSString *)stringForKey:(NSString *)key service:(nullable NSString *)service error:(NSError * __nullable __autoreleasing * __nullable)error;

    Swift

    class func string(forKey key: String, service: String?, error: ()) throws -> String
  • Undocumented

    Declaration

    Objective-C

    + (nullable NSString *)stringForKey:(NSString *)key service:(nullable NSString *)service accessGroup:(nullable NSString *)accessGroup error:(NSError * __nullable __autoreleasing * __nullable)error;

    Swift

    class func string(forKey key: String, service: String?, accessGroup: String?, error: ()) throws -> String
  • Undocumented

    Declaration

    Objective-C

    + (BOOL)setString:(nullable NSString *)value forKey:(NSString *)key error:(NSError * __nullable __autoreleasing * __nullable)error;

    Swift

    class func setString(_ value: String?, forKey key: String, error: ()) throws
  • Undocumented

    Declaration

    Objective-C

    + (BOOL)setString:(nullable NSString *)value forKey:(NSString *)key service:(nullable NSString *)service error:(NSError * __nullable __autoreleasing * __nullable)error;

    Swift

    class func setString(_ value: String?, forKey key: String, service: String?, error: ()) throws
  • Undocumented

    Declaration

    Objective-C

    + (BOOL)setString:(nullable NSString *)value forKey:(NSString *)key service:(nullable NSString *)service accessGroup:(nullable NSString *)accessGroup error:(NSError * __nullable __autoreleasing * __nullable)error;

    Swift

    class func setString(_ value: String?, forKey key: String, service: String?, accessGroup: String?, error: ()) throws
  • Undocumented

    Declaration

    Objective-C

    + (nullable NSData *)dataForKey:(NSString *)key error:(NSError * __nullable __autoreleasing * __nullable)error;

    Swift

    class func data(forKey key: String, error: ()) throws -> Data
  • Undocumented

    Declaration

    Objective-C

    + (nullable NSData *)dataForKey:(NSString *)key service:(nullable NSString *)service error:(NSError * __nullable __autoreleasing * __nullable)error;

    Swift

    class func data(forKey key: String, service: String?, error: ()) throws -> Data
  • Undocumented

    Declaration

    Objective-C

    + (nullable NSData *)dataForKey:(NSString *)key service:(nullable NSString *)service accessGroup:(nullable NSString *)accessGroup error:(NSError * __nullable __autoreleasing * __nullable)error;

    Swift

    class func data(forKey key: String, service: String?, accessGroup: String?, error: ()) throws -> Data
  • Undocumented

    Declaration

    Objective-C

    + (BOOL)setData:(nullable NSData *)data forKey:(NSString *)key error:(NSError * __nullable __autoreleasing * __nullable)error;

    Swift

    class func setData(_ data: Data?, forKey key: String, error: ()) throws
  • Undocumented

    Declaration

    Objective-C

    + (BOOL)setData:(nullable NSData *)data forKey:(NSString *)key service:(nullable NSString *)service error:(NSError * __nullable __autoreleasing * __nullable)error;

    Swift

    class func setData(_ data: Data?, forKey key: String, service: String?, error: ()) throws
  • Undocumented

    Declaration

    Objective-C

    + (BOOL)setData:(nullable NSData *)data forKey:(NSString *)key service:(nullable NSString *)service accessGroup:(nullable NSString *)accessGroup error:(NSError * __nullable __autoreleasing * __nullable)error;

    Swift

    class func setData(_ data: Data?, forKey key: String, service: String?, accessGroup: String?, error: ()) throws
  • Undocumented

    Declaration

    Objective-C

    - (BOOL)setString:(nullable NSString *)string forKey:(NSString * )key error:(NSError * __nullable __autoreleasing * __nullable)error;

    Swift

    func setString(_ string: String?, forKey key: String, error: ()) throws
  • Undocumented

    Declaration

    Objective-C

    - (BOOL)setString:(nullable NSString *)string forKey:(NSString * )key label:(nullable NSString *)label comment:(nullable NSString *)comment error:(NSError * __nullable __autoreleasing * __nullable)error;

    Swift

    func setString(_ string: String?, forKey key: String, label: String?, comment: String?, error: ()) throws
  • Undocumented

    Declaration

    Objective-C

    - (BOOL)setData:(nullable NSData *)data forKey:(NSString *)key error:(NSError * __nullable __autoreleasing * __nullable)error;

    Swift

    func setData(_ data: Data?, forKey key: String, error: ()) throws
  • Undocumented

    Declaration

    Objective-C

    - (BOOL)setData:(nullable NSData *)data forKey:(NSString *)key label:(nullable NSString *)label comment:(nullable NSString *)comment error:(NSError * __nullable __autoreleasing * __nullable)error;

    Swift

    func setData(_ data: Data?, forKey key: String, label: String?, comment: String?, error: ()) throws
  • Undocumented

    Declaration

    Objective-C

    - (nullable NSString *)stringForKey:(NSString *)key error:(NSError * __nullable __autoreleasing * __nullable)error;

    Swift

    func string(forKey key: String, error: ()) throws -> String
  • Undocumented

    Declaration

    Objective-C

    - (nullable NSData *)dataForKey:(NSString *)key error:(NSError * __nullable __autoreleasing * __nullable)error;

    Swift

    func data(forKey key: String, error: ()) throws -> Data
  • Undocumented

    Declaration

    Objective-C

    + (BOOL)removeItemForKey:(NSString *)key error:(NSError * __nullable __autoreleasing * __nullable)error;

    Swift

    class func removeItem(forKey key: String, error: ()) throws
  • Undocumented

    Declaration

    Objective-C

    + (BOOL)removeItemForKey:(NSString *)key service:(nullable NSString *)service error:(NSError * __nullable __autoreleasing * __nullable)error;

    Swift

    class func removeItem(forKey key: String, service: String?, error: ()) throws
  • Undocumented

    Declaration

    Objective-C

    + (BOOL)removeItemForKey:(NSString *)key service:(nullable NSString *)service accessGroup:(nullable NSString *)accessGroup error:(NSError * __nullable __autoreleasing * __nullable)error;

    Swift

    class func removeItem(forKey key: String, service: String?, accessGroup: String?, error: ()) throws
  • Undocumented

    Declaration

    Objective-C

    + (BOOL)removeAllItemsWithError:(NSError * __nullable __autoreleasing * __nullable)error;

    Swift

    class func removeAllItemsWithError() throws
  • Undocumented

    Declaration

    Objective-C

    + (BOOL)removeAllItemsForService:(nullable NSString *)service error:(NSError * __nullable __autoreleasing * __nullable)error;

    Swift

    class func removeAllItems(forService service: String?, error: ()) throws
  • Undocumented

    Declaration

    Objective-C

    + (BOOL)removeAllItemsForService:(nullable NSString *)service accessGroup:(nullable NSString *)accessGroup error:(NSError * __nullable __autoreleasing * __nullable)error;

    Swift

    class func removeAllItems(forService service: String?, accessGroup: String?, error: ()) throws
  • Undocumented

    Declaration

    Objective-C

    - (BOOL)removeItemForKey:(NSString *)key error:(NSError * __nullable __autoreleasing * __nullable)error;

    Swift

    func removeItem(forKey key: String, error: ()) throws
  • Undocumented

    Declaration

    Objective-C

    - (BOOL)removeAllItemsWithError:(NSError * __nullable __autoreleasing * __nullable)error;

    Swift

    func removeAllItemsWithError() throws

ForwardCompatibility

  • Undocumented

    Declaration

    Objective-C

    + (BOOL)setString:(nullable NSString *)value forKey:(NSString *)key genericAttribute:(nullable id)genericAttribute;

    Swift

    class func setString(_ value: String?, forKey key: String, genericAttribute: Any?) -> Bool
  • Undocumented

    Declaration

    Objective-C

    + (BOOL)setString:(nullable NSString *)value forKey:(NSString *)key genericAttribute:(nullable id)genericAttribute error:(NSError * __nullable __autoreleasing * __nullable)error;

    Swift

    class func setString(_ value: String?, forKey key: String, genericAttribute: Any?, error: ()) throws
  • Undocumented

    Declaration

    Objective-C

    + (BOOL)setString:(nullable NSString *)value forKey:(NSString *)key service:(nullable NSString *)service genericAttribute:(nullable id)genericAttribute;

    Swift

    class func setString(_ value: String?, forKey key: String, service: String?, genericAttribute: Any?) -> Bool
  • Undocumented

    Declaration

    Objective-C

    + (BOOL)setString:(nullable NSString *)value forKey:(NSString *)key service:(nullable NSString *)service genericAttribute:(nullable id)genericAttribute error:(NSError * __nullable __autoreleasing * __nullable)error;

    Swift

    class func setString(_ value: String?, forKey key: String, service: String?, genericAttribute: Any?, error: ()) throws
  • Undocumented

    Declaration

    Objective-C

    + (BOOL)setString:(nullable NSString *)value forKey:(NSString *)key service:(nullable NSString *)service accessGroup:(nullable NSString *)accessGroup genericAttribute:(nullable id)genericAttribute;

    Swift

    class func setString(_ value: String?, forKey key: String, service: String?, accessGroup: String?, genericAttribute: Any?) -> Bool
  • Undocumented

    Declaration

    Objective-C

    + (BOOL)setString:(nullable NSString *)value forKey:(NSString *)key service:(nullable NSString *)service accessGroup:(nullable NSString *)accessGroup genericAttribute:(nullable id)genericAttribute error:(NSError * __nullable __autoreleasing * __nullable)error;

    Swift

    class func setString(_ value: String?, forKey key: String, service: String?, accessGroup: String?, genericAttribute: Any?, error: ()) throws
  • Undocumented

    Declaration

    Objective-C

    + (BOOL)setData:(nullable NSData *)data forKey:(NSString *)key genericAttribute:(nullable id)genericAttribute;

    Swift

    class func setData(_ data: Data?, forKey key: String, genericAttribute: Any?) -> Bool
  • Undocumented

    Declaration

    Objective-C

    + (BOOL)setData:(nullable NSData *)data forKey:(NSString *)key genericAttribute:(nullable id)genericAttribute error:(NSError * __nullable __autoreleasing * __nullable)error;

    Swift

    class func setData(_ data: Data?, forKey key: String, genericAttribute: Any?, error: ()) throws
  • Undocumented

    Declaration

    Objective-C

    + (BOOL)setData:(nullable NSData *)data forKey:(NSString *)key service:(nullable NSString *)service genericAttribute:(nullable id)genericAttribute;

    Swift

    class func setData(_ data: Data?, forKey key: String, service: String?, genericAttribute: Any?) -> Bool
  • Undocumented

    Declaration

    Objective-C

    + (BOOL)setData:(nullable NSData *)data forKey:(NSString *)key service:(nullable NSString *)service genericAttribute:(nullable id)genericAttribute error:(NSError * __nullable __autoreleasing * __nullable)error;

    Swift

    class func setData(_ data: Data?, forKey key: String, service: String?, genericAttribute: Any?, error: ()) throws
  • Undocumented

    Declaration

    Objective-C

    + (BOOL)setData:(nullable NSData *)data forKey:(NSString *)key service:(nullable NSString *)service accessGroup:(nullable NSString *)accessGroup genericAttribute:(nullable id)genericAttribute;

    Swift

    class func setData(_ data: Data?, forKey key: String, service: String?, accessGroup: String?, genericAttribute: Any?) -> Bool
  • Undocumented

    Declaration

    Objective-C

    + (BOOL)setData:(nullable NSData *)data forKey:(NSString *)key service:(nullable NSString *)service accessGroup:(nullable NSString *)accessGroup genericAttribute:(nullable id)genericAttribute error:(NSError * __nullable __autoreleasing * __nullable)error;

    Swift

    class func setData(_ data: Data?, forKey key: String, service: String?, accessGroup: String?, genericAttribute: Any?, error: ()) throws
  • Undocumented

    Declaration

    Objective-C

    - (BOOL)setString:(nullable NSString *)string forKey:(NSString *)key genericAttribute:(nullable id)genericAttribute;

    Swift

    func setString(_ string: String?, forKey key: String, genericAttribute: Any?) -> Bool
  • Undocumented

    Declaration

    Objective-C

    - (BOOL)setString:(nullable NSString *)string forKey:(NSString *)key genericAttribute:(nullable id)genericAttribute error:(NSError * __nullable __autoreleasing * __nullable)error;

    Swift

    func setString(_ string: String?, forKey key: String, genericAttribute: Any?, error: ()) throws
  • Undocumented

    Declaration

    Objective-C

    - (BOOL)setData:(nullable NSData *)data forKey:(NSString *)key genericAttribute:(nullable id)genericAttribute;

    Swift

    func setData(_ data: Data?, forKey key: String, genericAttribute: Any?) -> Bool
  • Undocumented

    Declaration

    Objective-C

    - (BOOL)setData:(nullable NSData *)data forKey:(NSString *)key genericAttribute:(nullable id)genericAttribute error:(NSError * __nullable __autoreleasing * __nullable)error;

    Swift

    func setData(_ data: Data?, forKey key: String, genericAttribute: Any?, error: ()) throws