Mac OS X Authentication Dialog
Hi to everybody.
I have a Java application which needs to run under Mac OS X. In order to perform some specific actions, my application needs to copy certain files in some subfolders of the /Applications folder.
This requires privileges which are not normally owned by the Java application. Nevertheless, several native applications (e.g., Installers) are able to copy files to the /Applications folder: they simply display the OS-provided User Authentication dialog, and if the user provides valid login data, then the privilege to copy files to restricted folders is granted, and the native application is able to complete its task. I believe native applications use the OS X "Authorization Services" in order to do this.
Is this functionality available from pure-Java code? Is it possible from a Java application to display the Mac OS X authentication dialog and to finally obtain the privilege to copy files to restricted folders?
This can certainly be done in some way through JNI, but I would like to understand if there is a pure-Java way to accomplish this task.
Any help or suggestion would be greatly appreciated.
Best regards,
Marco.