Formatting

pull/6458/head
Phillip Webb 8 years ago
parent af426d0856
commit fd6c0029dc

@ -294,17 +294,14 @@ public class UndertowEmbeddedServletContainerFactory
}
KeyStore keyStore = KeyStore.getInstance(keyStoreType);
URL url = ResourceUtils.getURL(ssl.getKeyStore());
char[] keyStorePassword = ssl.getKeyStorePassword() != null
? ssl.getKeyStorePassword().toCharArray()
: null;
char[] keyStorePassword = (ssl.getKeyStorePassword() != null
? ssl.getKeyStorePassword().toCharArray() : null);
keyStore.load(url.openStream(), keyStorePassword);
// Get key manager to provide client credentials.
KeyManagerFactory keyManagerFactory = KeyManagerFactory
.getInstance(KeyManagerFactory.getDefaultAlgorithm());
char[] keyPassword = ssl.getKeyPassword() != null
? ssl.getKeyPassword().toCharArray()
: keyStorePassword;
char[] keyPassword = (ssl.getKeyPassword() != null
? ssl.getKeyPassword().toCharArray() : keyStorePassword);
keyManagerFactory.init(keyStore, keyPassword);
return keyManagerFactory.getKeyManagers();
}

Loading…
Cancel
Save