trustedCertManager = (X509TrustManager)trustManagers[0];
}
// Add the CRL check if it was specified
if ((crls != null) && (trustManagers != null)) {
trustedCertManager = new CompositeTrustManager((X509TrustManager)trustManagers[0], crls);
if (log.isDebugEnabled()) {
log.debug("Adding composite trust manager {}", trustedCertManager);
}
}