# NSURLCredentialStorage class documentation

frm@gnu.org
Generated at 2025-09-10 09:16:48 +0000
2006 Software Foundation, Inc.
Software documentation for the NSURLCredentialStorage class
Foundation/NSURLCredentialStorage.h
Provides shared storage of credentials.
Warning the underscore at the start of the name of this instance variable indicates that, even though it is not technically private, it is intended for internal use within the package, and you should not use the variable in other code.
sharedCredentialStorage
Return the shared credential storage object.
allCredentials
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.
credentialsForProtectionSpace:
space
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.
defaultCredentialForProtectionSpace:
space
Returns the default credential for the specified protection space, or `nil` if none is set.
removeCredential:
credential
forProtectionSpace:
space
Removes the credential from both in-memory and persistent storage for the specified protection space.
setCredential:
credential
forProtectionSpace:
space
Sets credential in the storage for the protection space specified.
This replaces any old value with the same username.
setDefaultCredential:
credential
forProtectionSpace:
space
Sets the default credential for the protection space. Also calls -setCredential:forProtectionSpace: if the credential has not already been set in space.