org.gudy.azureus2.core3.security
Class SESecurityManager
java.lang.Object
org.gudy.azureus2.core3.security.SESecurityManager
public class SESecurityManager
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SSL_CERTS
public static final String SSL_CERTS
- See Also:
- Constant Field Values
SSL_KEYS
public static final String SSL_KEYS
- See Also:
- Constant Field Values
SSL_PASSWORD
public static final String SSL_PASSWORD
- See Also:
- Constant Field Values
DEFAULT_ALIAS
public static final String DEFAULT_ALIAS
- See Also:
- Constant Field Values
SESecurityManager
public SESecurityManager()
initialise
public static void initialise()
exitVM
public static void exitVM(int status)
stopThread
public static void stopThread(Thread t)
installAuthenticator
public static void installAuthenticator()
resetTrustStore
public static boolean resetTrustStore(boolean test_only)
getKeystoreName
public static String getKeystoreName()
getKeystorePassword
public static String getKeystorePassword()
getSSLServerSocketFactory
public static SSLServerSocketFactory getSSLServerSocketFactory()
throws Exception
- Throws:
Exception
getTrustManagerFactory
public static TrustManagerFactory getTrustManagerFactory()
getAllTrustingTrustManager
public static TrustManager[] getAllTrustingTrustManager()
getAllTrustingTrustManager
public static TrustManager[] getAllTrustingTrustManager(X509TrustManager delegate)
getSSLSocketFactory
public static SSLSocketFactory getSSLSocketFactory()
installServerCertificates
public static SSLSocketFactory installServerCertificates(URL https_url)
installServerCertificates
public static SSLSocketFactory installServerCertificates(String alias,
String ip,
int port)
createSelfSignedCertificate
public static Certificate createSelfSignedCertificate(String alias,
String cert_dn,
int strength)
throws Exception
- Throws:
Exception
getKeyDetails
public static SEKeyDetails getKeyDetails(String alias)
throws Exception
- Throws:
Exception
getKeyStore
public static KeyStore getKeyStore()
throws Exception
- Throws:
Exception
getTrustStore
public static KeyStore getTrustStore()
throws Exception
- Throws:
Exception
getPasswordAuthentication
public static PasswordAuthentication getPasswordAuthentication(String realm,
URL tracker)
setPasswordAuthenticationOutcome
public static void setPasswordAuthenticationOutcome(String realm,
URL tracker,
boolean success)
addPasswordListener
public static void addPasswordListener(SEPasswordListener l)
removePasswordListener
public static void removePasswordListener(SEPasswordListener l)
clearPasswords
public static void clearPasswords()
setThreadPasswordHandler
public static void setThreadPasswordHandler(SEPasswordListener l)
unsetThreadPasswordHandler
public static void unsetThreadPasswordHandler()
setPasswordHandler
public static void setPasswordHandler(URL url,
SEPasswordListener l)
addCertificateListener
public static void addCertificateListener(SECertificateListener l)
setCertificateHandler
public static void setCertificateHandler(URL url,
SECertificateListener l)
removeCertificateListener
public static void removeCertificateListener(SECertificateListener l)
getClassContext
public static Class[] getClassContext()