Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: KeychainStore, more fun with Runtime, for the archives




On Jan 9, 2006, at 10:10 AM, Scott Kovatch wrote:



KeyStore ks = KeyStore.getInstance("KeychainStore","Apple");
String path = rtexec(new String[] { "Security","default- keychain" });

This step is unnecessary, as the KeychainStore is just a representation of the current user's default keychain. In fact, the stream argument is ignored altogether. Remember that the keychain can consist of one or more keychain files. That's what you see when you open Keychain Access, or when you use 'security list-keychains'.


My testing was limited but the KeyStore load which takes the FileInputStream seemed necessary or I got a keystore not initialized error. Possibly doing the load with a null would of worked as well. I'll test that since it would at least default eliminate the need for Runtime.

Having said that, I suppose there's a benefit in having one keystore represent one keychain file. File an enhancement request and I'll look into it.

Since the 'security' command, character case was off in the code but worked, does allow changing the active keychain(s), the ability to support that from java would seem a logical and probably reasonably easy change to implement so I'll make the request.



I doesn't look to handle the internationalization characters real nicely. Any quick suggestions to clean that up would be appreciated.

What do you mean here? The KeychainStore? security tool? certtool?
Output of the alias list. I seem to have picked up a few certificates from email list members? One or two had '?' substitutes for what I assumed were accented characters.


Mike Hall mikehall at spacestar dot net http://www.spacestar.net/users/mikehall http://sourceforge.net/projects/macnative



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden
References: 
 >KeychainStore, more fun with Runtime, for the archives (From: Michael Hall <email@hidden>)
 >Re: KeychainStore, more fun with Runtime, for the archives (From: Scott Kovatch <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.