FileDocCategorySizeDatePackage
SESecurityManager.javaAPI DocAzureus 3.0.3.45015Fri May 04 18:50:00 BST 2007org.gudy.azureus2.core3.security

SESecurityManager

public class SESecurityManager extends Object
author
parg

Fields Summary
public static final String
SSL_CERTS
public static final String
SSL_KEYS
public static final String
SSL_PASSWORD
public static final String
DEFAULT_ALIAS
Constructors Summary
Methods Summary
public static voidaddCertificateListener(SECertificateListener l)

		SESecurityManagerImpl.getSingleton().addCertificateListener(l);
	
public static voidaddPasswordListener(SEPasswordListener l)

		SESecurityManagerImpl.getSingleton().addPasswordListener(l);	
	
public static voidclearPasswords()

		SESecurityManagerImpl.getSingleton().clearPasswords();
	
public static java.security.cert.CertificatecreateSelfSignedCertificate(java.lang.String alias, java.lang.String cert_dn, int strength)

		return( SESecurityManagerImpl.getSingleton().createSelfSignedCertificate( alias, cert_dn, strength ));
	
public static voidexitVM(int status)

		SESecurityManagerImpl.getSingleton().exitVM(status);
	
public static SEKeyDetailsgetKeyDetails(java.lang.String alias)

		return( SESecurityManagerImpl.getSingleton().getKeyDetails( alias ));
	
public static java.security.KeyStoregetKeyStore()

		return( SESecurityManagerImpl.getSingleton().getKeyStore());
	
public static java.lang.StringgetKeystoreName()

		return(	SESecurityManagerImpl.getSingleton().getKeystoreName());
	
public static java.lang.StringgetKeystorePassword()

		return(	SESecurityManagerImpl.getSingleton().getKeystorePassword());
	
public static java.net.PasswordAuthenticationgetPasswordAuthentication(java.lang.String realm, java.net.URL tracker)

		return( SESecurityManagerImpl.getSingleton().getPasswordAuthentication(realm, tracker));	
	
public static javax.net.ssl.SSLServerSocketFactorygetSSLServerSocketFactory()

		return( SESecurityManagerImpl.getSingleton().getSSLServerSocketFactory());
	
public static javax.net.ssl.SSLSocketFactorygetSSLSocketFactory()

		return( SESecurityManagerImpl.getSingleton().getSSLSocketFactory());
	
public static java.security.KeyStoregetTrustStore()

		return( SESecurityManagerImpl.getSingleton().getTrustStore());
	
public static voidinitialise()

	
	  
	
	
		SESecurityManagerImpl.getSingleton().initialise();
	
public static voidinstallAuthenticator()

		SESecurityManagerImpl.getSingleton().installAuthenticator();
	
public static javax.net.ssl.SSLSocketFactoryinstallServerCertificates(java.net.URL https_url)

		return( SESecurityManagerImpl.getSingleton().installServerCertificates(https_url));
	
public static javax.net.ssl.SSLSocketFactoryinstallServerCertificates(java.lang.String alias, java.lang.String ip, int port)

		return( SESecurityManagerImpl.getSingleton().installServerCertificates( alias, ip, port ));
	
public static voidremoveCertificateListener(SECertificateListener l)

		SESecurityManagerImpl.getSingleton().removeCertificateListener(l);
	
public static voidremovePasswordListener(SEPasswordListener l)

		SESecurityManagerImpl.getSingleton().removePasswordListener(l);	
	
public static voidsetCertificateHandler(java.net.URL url, SECertificateListener l)

		SESecurityManagerImpl.getSingleton().setCertificateHandler(url,l);
	
public static voidsetPasswordAuthenticationOutcome(java.lang.String realm, java.net.URL tracker, boolean success)

		SESecurityManagerImpl.getSingleton().setPasswordAuthenticationOutcome(realm, tracker, success);	
	
public static voidsetPasswordHandler(java.net.URL url, SEPasswordListener l)

		SESecurityManagerImpl.getSingleton().setPasswordHandler( url, l );
	
public static voidsetThreadPasswordHandler(SEPasswordListener l)

		SESecurityManagerImpl.getSingleton().setThreadPasswordHandler(l);
	
public static voidunsetThreadPasswordHandler()

		SESecurityManagerImpl.getSingleton().unsetThreadPasswordHandler();