use of eu.emi.security.authn.x509.impl.CertificateUtils.Encoding.PEM in project airavata by apache.
the class X509SecurityContext method getTrustedCerts.
private static DirectoryCertChainValidator getTrustedCerts() throws Exception {
String certLocation = getTrustedCertificatePath();
List<String> trustedCert = new ArrayList<String>();
trustedCert.add(certLocation + "/*.0");
trustedCert.add(certLocation + "/*.pem");
DirectoryCertChainValidator dcValidator = new DirectoryCertChainValidator(trustedCert, Encoding.PEM, -1, 60000, null);
return dcValidator;
}
use of eu.emi.security.authn.x509.impl.CertificateUtils.Encoding.PEM in project airavata by apache.
the class X509SecurityContext method getTrustedCerts.
private static DirectoryCertChainValidator getTrustedCerts() throws Exception {
String certLocation = getTrustedCertificatePath();
List<String> trustedCert = new ArrayList<String>();
trustedCert.add(certLocation + "/*.0");
trustedCert.add(certLocation + "/*.pem");
DirectoryCertChainValidator dcValidator = new DirectoryCertChainValidator(trustedCert, Encoding.PEM, -1, 60000, null);
return dcValidator;
}
Aggregations