log.debug("Loading KeyStore with type : " + storeType);
}
String keyStorePassword = this.keyStorePasswordProvider.getResolvedSecret();
switch (storeType) {
case JKS:
IKeyStoreLoader jksKeyStoreLoader = new JKSKeyStoreLoader(location,
keyStorePassword);
return jksKeyStoreLoader.getKeyStore();
case PKCS12:
IKeyStoreLoader pkcs12KeyStoreLoader = new PKCS12KeyStoreLoader(location,
keyStorePassword);
return pkcs12KeyStoreLoader.getKeyStore();