* @param defaultKey default key
*/
public JKSKeyManager(Resource storeFile, String storePass, Map<String, String> passwords, String defaultKey) {
this.keyStore = initialize(storeFile, storePass, "JKS");
this.availableKeys = getAvailableKeys(keyStore);
this.credentialResolver = new KeyStoreCredentialResolver(keyStore, passwords);
this.defaultKey = defaultKey;
}