Apple Security Provider.
Michael Hall
mik3hall at gmail.com
Tue May 1 15:10:36 PDT 2012
On May 1, 2012, at 4:57 PM, Mike Swingler wrote:
> On May 1, 2012, at 2:17 PM, Michael Hall wrote:
>
>> On May 1, 2012, at 3:52 PM, Brad Wetmore wrote:
>>
>>> There are several services which were available in the Apple provider from JDK6 but not present in the current JDK7u4 port.
>>
>> Does that include using KeyChain as a keystore? I seem to remember a certain amount of mention concerning usage of that. Back a ways.
>
> I believe we did port over the KeyChain provider, but not the entirely of the Apple provider (since it was based on deprecated API).
I got to thinking about this and remembered it looked something like this...
public KeyStoreHandler(File f) {
if (f == null && System.getProperty("os.name").equals("Mac OS X")) {
try {
ks = KeyStore.getInstance("KeychainStore","Apple");
}
catch (Exception ex) { ex.printStackTrace(); }
}
else
ks = load(KeyStore.getDefaultType(),f.getPath(),null);
}
What would the Provider second parameter to KeyStore getInstance be now?
More information about the macosx-port-dev
mailing list