config.setName("whatever");
// Configure certificate store
CertificateStores certStores = new CertificateStores();
TrustManagersType tm0 = new TrustManagersType();
KeyStoreType ks0 = new KeyStoreType();
ks0.setType("PEM");
// ks0.setType("JKS");
// ks0.setPassword("changeit");
ks0.setFile(trustedIdpConfig.getCertificate());
tm0.setKeyStore(ks0);
certStores.getTrustManager().add(tm0);
config.setCertificateStores(certStores);
// Configure trusted IDP