Created
October 27, 2018 10:16
-
-
Save MaartenSmeets/231238e5cca75d7b790ab47171ac1140 to your computer and use it in GitHub Desktop.
Access key from keystore instance
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PasswordProtection pp = new PasswordProtection(prop.getProperty("keypassword").toCharArray()); | |
KeyStore.PrivateKeyEntry pkEntry = (KeyStore.PrivateKeyEntry) ks.getEntry(prop.getProperty("keyalias"), pp); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment