Yes.
1. Use java.security.KeyStore to load a keystore
2. the method aliases() on a KeyStore object will return an Enumeration of all entries in the KeyStore
3. Use the method isCertificateEntry to test if an alias is a Trusted Cert
or use isKeyEntry to test if an alias is one your regular Certficate or Private Key.
I have some code somewhere to do this but can't find it right now. If you stil need
the code, send me an email @yahoo.com
>
> Is there any API to query of a list of certificates in
> keystore?
>
> Thanks
>
> -Dan