}
}
if (trustManager == null) {
// This should never happen since we handle only X509 certificates
throw new CertificateException("Found no X509TrustManager");
}
} catch (NoSuchAlgorithmException ex) {
CertificateException cae = new CertificateException("Certificate algorithm is unknown", ex);
log.throwing("GECATrustManager", "init", cae);
throw cae;
} catch (InvalidAlgorithmParameterException ex) {
CertificateException cae = new CertificateException("Invalid parameters for crypte algorithms", ex);
log.throwing("GECATrustManager", "init", cae);
throw cae;
} catch(KeyStoreException ex) {
CertificateException cae = new CertificateException("Cannot create keystore for ca certificate", ex);
log.throwing("GECATrustManager", "init", cae);
throw cae;
} catch(IOException ex) {
CertificateException cae = new CertificateException("I/O error while initializing the ca certificate", ex);
log.throwing("GECATrustManager", "init", cae);
throw cae;
} catch(CRLException ex) {
CertificateException cae = new CertificateException("Error in crl file", ex);
log.throwing("SgeCATrustManager", "init", ex);
throw cae;
}
log.exiting("GECATrustManager", "init");
}