private static KeyManagerFactory getKeyManagerFactory(final String algorithm, final KeyStore keystore,
                                                          final char[] password) throws Exception {
        val factory = KeyManagerFactory.getInstance(algorithm);
        factory.init(keystore, password);
        return factory;
    }
This is {@link DefaultCasSSLContext}.

@author Misagh Moayyed
@since 5.2.0
core/cas-server-core-authentication-api/src/main/java/org/apereo/cas/authentication/DefaultCasSSLContext.java