Last active
January 29, 2018 10:02
-
-
Save sw-samuraj/fcc7e19bba13dadb14103af80871d5c1 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
@Bean | |
public KeyManager keyManager() { | |
DefaultResourceLoader loader = new DefaultResourceLoader(); | |
Resource storeFile = loader.getResource("classpath:/saml/samlKeystore.jks"); | |
String storePass = "secure"; | |
Map<String, String> passwords = new HashMap<>(); | |
passwords.put("samuraj", "secure"); | |
String defaultKey = "samuraj"; | |
return new JKSKeyManager(storeFile, storePass, passwords, defaultKey); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment