How to manage certificate with only public key?

How can I store and manage a lot of certificate(mostly are X509 encoded certs) from java apk files with java API? I hope to store them with java.security KeyStore, but I found it's impossible to store a certificate with only public key. Any one can help?
fxp007Asked:
Who is Participating?
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.