class OadrPKISecurity {

	public static KeyManagerFactory createKeyManagerFactory(String clientPrivateKeyPemFilePath,
			String clientCertificatePemFilePath, String password) throws OadrSecurityException {
		KeyManagerFactory kmf = null;
		try {
			KeyStore ks = OadrPKISecurity.createKeyStore(clientPrivateKeyPemFilePath, clientCertificatePemFilePath,
					password);

			kmf = KeyManagerFactory.getInstance(KeyManagerFactory.getDefaultAlgorithm());
			kmf.init(ks, password.toCharArray());
			return kmf;
		} catch (KeyStoreException | NoSuchAlgorithmException | CertificateException | IOException
				| UnrecoverableKeyException e) {
			throw new OadrSecurityException(e);
		}
	}

	private  OadrPKISecurity();

}