FileDocCategorySizeDatePackage
CertificateTrustWindow.javaAPI DocAzureus 3.0.3.47573Thu Jul 13 09:17:24 BST 2006org.gudy.azureus2.ui.swt.auth

CertificateTrustWindow

public class CertificateTrustWindow extends Object implements org.gudy.azureus2.core3.security.SECertificateListener
author
parg

Fields Summary
Constructors Summary
public CertificateTrustWindow()

		SESecurityManager.addCertificateListener( this );
	
Methods Summary
public booleantrustCertificate(java.lang.String resource, java.security.cert.X509Certificate cert)

		final Display	display = SWTThread.getInstance().getDisplay();
		
		if ( display.isDisposed()){
			
			return( false );
		}
		
		final trustDialog[]	dialog = new trustDialog[1];
		
		try{
			Utils.execSWTThread(new AERunnable() {
						public void
						runSupport()
						{
							dialog[0] = new trustDialog( display, resource, cert );
						}
					}, false);
		}catch( Throwable e ){
			
			Debug.printStackTrace( e );
			
			return( false );
		}
		
		return(dialog[0].getTrusted());