Le 15 mai 08 à 23:17, Ron Aldrich a écrit :


On May 15, 2008, at 9:32 AM, Jean-Daniel Dupas wrote:

All security related API are in the Security Framework(s).

You do not have control of what to user enter in this dialog, its main purpose is to create some "rights" and return them to you if the user is allow to use them.

Usually this dialog is automatically displayed when you query some authorizaton. The cocoa way to do this is to use the "SFAuthorization" class from SecurityFoundation framework.

What do you want to do exactly with this dialog ?

In my case, I'm needing to manage the password for a USB Thumb drive that supports a password protected area. I could implement this by itself pretty easily, using the NSSecureTextField, except that I would like to go much farther than simple password entry.

I would like provide the ability for users to store the password on their keychain.

I would like to utilize the "Password Assistant" for creating passwords.

I found a discussion of the Password Assistant, along with a link to a sample program using it at http://www.cocoadev.com/index.pl?PasswordAssistant

Unfortunately, the methods needed to utilize it would indicate to me that Apple considers it to be a private API.

That same discussion also seems to indicate that the password entry dialog used in diskimages-helper is also private.

So, unless I'm missing something, it looks like I'm going to be rolling my own dialog.

Thanks for your time,

Ron Aldrich
Software Architects, Inc.



Ok, you mean "password creation" dialog, not "password query" dialog. Sorry for the confusion. So no, I don't think there is a public API to invoke it. You can fill a bug report to request this features.


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to