class OadrPKISecurity {

	public static KeyStore createTrustStore(List<String> certificates) throws KeyStoreException,
			NoSuchAlgorithmException, CertificateException, IOException, OadrSecurityException {
		KeyStore ts = KeyStore.getInstance(KeyStore.getDefaultType());
		ts.load(null, null);
		String keyEntryPrefix = "trust_";
		int i = 1;
		for (String certPath : certificates) {
			ts.setCertificateEntry(keyEntryPrefix + i, OadrPKISecurity.parseCertificate(certPath));
			i++;
		}
		return ts;
	}

	private  OadrPKISecurity();

}