if ( !failCauses.isEmpty() )
{
// either trust check or host name verification
// ask for confirmation
ICertificateHandler ch = ConnectionCorePlugin.getDefault().getCertificateHandler();
ICertificateHandler.TrustLevel trustLevel = ch.verifyTrustLevel( host, chain, failCauses );
switch ( trustLevel )
{
case Permanent:
ConnectionCorePlugin.getDefault().getPermanentTrustStoreManager().addCertificate( chain[0] );
break;