Use jks as the default KeyStore type (#1258)
* Always use jks as the KeyStore type instead of trying to extract it from the resource extension. Fixes #1176 * Use property to decide the type of KeyStore to create
This commit is contained in:
@@ -97,7 +97,7 @@ public class EncryptionAutoConfiguration {
|
||||
KeyStore keyStore = this.key.getKeyStore();
|
||||
KeyStoreTextEncryptorLocator locator = new KeyStoreTextEncryptorLocator(
|
||||
new KeyStoreKeyFactory(keyStore.getLocation(),
|
||||
keyStore.getPassword().toCharArray()),
|
||||
keyStore.getPassword().toCharArray(), key.getKeyStore().getType()),
|
||||
keyStore.getSecret(), keyStore.getAlias());
|
||||
RsaAlgorithm algorithm = this.rsaProperties.getAlgorithm();
|
||||
locator.setRsaAlgorithm(algorithm);
|
||||
|
||||
Reference in New Issue
Block a user