class OadrPKISecurity {

	public static KeyStore createKeyStore(String privateKeyFilePath, String clientCertificatefilePath, String password)
			throws KeyStoreException, NoSuchAlgorithmException, CertificateException, IOException,
			OadrSecurityException {
		PrivateKey parsePrivateKey = OadrPKISecurity.parsePrivateKey(privateKeyFilePath);
		X509Certificate parseCertificate = OadrPKISecurity.parseCertificate(clientCertificatefilePath);
		Certificate[] certs = { parseCertificate };
		// create keystore
		KeyStore ks = KeyStore.getInstance(KeyStore.getDefaultType());
		ks.load(null, null);
		ks.setKeyEntry("key", parsePrivateKey, password.toCharArray(), certs);
		return ks;
	}

	private  OadrPKISecurity();

}