Everyone seems to not be answering the poster's original question: which is can you add a publicKey to a keystore. Yes. but its not as straight forward as adding a privatekey, trustedCertificate or secretkey
You need to call
When you later get the key, you'll need to cast the key to the type ...