Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@MaartenSmeets
Created October 27, 2018 10:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MaartenSmeets/97857d59c5d59cbd3fd7489bb404279b to your computer and use it in GitHub Desktop.
Save MaartenSmeets/97857d59c5d59cbd3fd7489bb404279b to your computer and use it in GitHub Desktop.
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