Up
Authors
- Generated by richard
-
- Declared in:
- Foundation/NSURLCredentialStorage.h
Availability: MacOS-X 10.2.0, Base 1.13.0
Provides shared storage of credentials.
Method summary
+ (
NSURLCredentialStorage*)
sharedCredentialStorage;
Availability: MacOS-X 10.2.0, Base 1.13.0
Return the shared credential storage object.
- (
NSDictionary*)
allCredentials;
Availability: MacOS-X 10.2.0, Base 1.13.0
Returns a dictionary of dictionaries... with
NSURLProtectionSpace
objects as the keys in the outer dictionary, and
values which are dictionaries of the credentails
within each protection space.
- (
NSDictionary*)
credentialsForProtectionSpace: (
NSURLProtectionSpace*)space;
Availability: MacOS-X 10.2.0, Base 1.13.0
Returns a dictionary mapping usernames to
credentials for the specified protection
space.
Each username is a unique
identifier for a credential within a protection
space.
- (
NSURLCredential*)
defaultCredentialForProtectionSpace: (
NSURLProtectionSpace*)space;
Availability: MacOS-X 10.2.0, Base 1.13.0
Returns the default credential for the specified
protection space, or nil
if none is set.
- (void)
removeCredential: (
NSURLCredential*)credential
forProtectionSpace: (
NSURLProtectionSpace*)space;
Availability: MacOS-X 10.2.0, Base 1.13.0
Removes the credential from both
in-memory and persistent storage for the
specified protection space.
- (void)
setCredential: (
NSURLCredential*)credential
forProtectionSpace: (
NSURLProtectionSpace*)space;
Availability: MacOS-X 10.2.0, Base 1.13.0
Sets credential in the storage for the
protection space specified.
This replaces any old value with the same username.
Up