Re: Ignoring credentials in shared NSURLCredentialStorage
Re: Ignoring credentials in shared NSURLCredentialStorage
- Subject: Re: Ignoring credentials in shared NSURLCredentialStorage
- From: Dave Dribin <email@hidden>
- Date: Fri, 11 May 2007 06:48:55 -0500
On May 11, 2007, at 1:30 AM, Jerry Krinock wrote:
Yes, that's exactly what it says. But NSURLCredentialStorage is
not Keychain.
Try running this app:
-----
// gcc -o credentials credentials.m -framework Foundation
#import <Foundation/Foundation.h>
int main (int argc, const char * argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
NSDictionary * allCredentials =
[[NSURLCredentialStorage sharedCredentialStorage]
allCredentials];
NSLog(@"All (%d) credentials: %@", [allCredentials count],
allCredentials);
[pool release];
return 0;
}
-----
I get 114 credentials, which, I assume, it pulls out of Keychain.
Actually, just found this in the docs, too. See "Authentication and
Credentials":
<http://developer.apple.com/documentation/Cocoa/Conceptual/
URLLoadingSystem/Concepts/URLOverview.html>
Note: Credentials stored in persistent storage are kept in the
user's keychain and shared among all applications.
-Dave
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden