iOS Developer Library — Prerelease

Developer

Foundation Framework Reference NSURLCredentialStorage Class Reference

Options
Deployment Target:

On This Page
Language:

NSURLCredentialStorage

NSURLCredentialStorage implements a singleton (shared object) that manages the credential storage.

  • Key used by the options dictionary passed in removeCredential:forProtectionSpace:options:.

    Declaration

    Swift

    let NSURLCredentialStorageRemoveSynchronizableCredentials: String

    Objective-C

    NSString *const NSURLCredentialStorageRemoveSynchronizableCredentials;

    Constants

    • NSURLCredentialStorageRemoveSynchronizableCredentials

      NSURLCredentialStorageRemoveSynchronizableCredentials

      The corresponding value is an NSNumber object representing a Boolean value that indicates whether credentials which contain the NSURLCredentialPersistenceSynchronizable attribute should be removed.

      If the key is missing or the value is @NO, then no attempt will be made to remove such a credential.

      Available in iOS 7.0 and later.

  • This notification is posted when the set of stored credentials changes.

    The notification object is the NSURLCredentialStorage instance. This notification does not contain a userInfo dictionary.

    Declaration

    Swift

    let NSURLCredentialStorageChangedNotification: String

    Import Statement

    Objective-C

    @import Foundation;

    Swift

    import Foundation

    Availability

    Available in iOS 2.0 and later.