public void checkServerTrusted( X509Certificate[] chain, String authType ) throws CertificateException
{
// check permanent trusted certificates, return on success
try
{
X509TrustManager permanentTrustManager = getPermanentTrustManager();
if ( permanentTrustManager != null )
{
permanentTrustManager.checkServerTrusted( chain, authType );
return;
}
}
catch ( CertificateException ce )
{
}
// check temporary trusted certificates, return on success
try
{
X509TrustManager sessionTrustManager = getSessionTrustManager();
if ( sessionTrustManager != null )
{
sessionTrustManager.checkServerTrusted( chain, authType );
return;
}
}
catch ( CertificateException ce )
{