Created
June 15, 2016 08:57
-
-
Save kasimok/d275c1b895a472d759fd9e419036bcf5 to your computer and use it in GitHub Desktop.
Load File in resources folder
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
//Get file from resources folder | |
ClassLoader classLoader = getClass().getClassLoader(); | |
File file = new File(classLoader.getResource("certs/root/ca-key.pkcs8").getFile()); | |
return readPrivateKey(file.getPath()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment