Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Get RSA keys for use with JWT token
RSAPrivateKey myPrivateKey = (RSAPrivateKey) pkEntry.getPrivateKey();
RSAPublicKey myPublicKey = (RSAPublicKey) pkEntry.getCertificate().getPublicKey();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment