Search in sources :

Example 1 with PEM

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;
}
Also used : DirectoryCertChainValidator(eu.emi.security.authn.x509.impl.DirectoryCertChainValidator) ArrayList(java.util.ArrayList)

Example 2 with PEM

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;
}
Also used : DirectoryCertChainValidator(eu.emi.security.authn.x509.impl.DirectoryCertChainValidator) ArrayList(java.util.ArrayList)

Aggregations

DirectoryCertChainValidator (eu.emi.security.authn.x509.impl.DirectoryCertChainValidator)2 ArrayList (java.util.ArrayList)2