Class SESecurityManager
java.lang.Object
com.biglybt.core.security.SESecurityManager
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidstatic voidstatic CertificatecreateSelfSignedCertificate(String alias, String cert_dn, int strength) static voidexitVM(int status) static booleanfilterNetworkInterfaces(List<NetworkInterface> interfaces) static TrustManager[]static TrustManager[]getAllTrustingTrustManager(X509TrustManager delegate) static Class[]static SEKeyDetailsgetKeyDetails(String alias) static Stringstatic Stringstatic PasswordAuthenticationgetPasswordAuthentication(String realm, URL tracker) static SSLServerSocketFactorystatic SSLSocketFactorystatic TrustManagerFactorystatic voidstatic voidstatic SSLSocketFactoryinstallServerCertificates(String alias, String ip, int port) static SSLSocketFactoryinstallServerCertificates(URL https_url) static voidstatic voidstatic booleanresetTrustStore(boolean test_only) static voidstatic voidsetPasswordAuthenticationOutcome(String realm, URL tracker, boolean success) static voidsetPasswordHandler(URL url, SEPasswordListener l) static voidstatic voidstopThread(Thread t) static void
-
Field Details
-
SSL_CERTS
- See Also:
-
SSL_KEYS
- See Also:
-
SSL_PASSWORD
- See Also:
-
DEFAULT_ALIAS
-
-
Constructor Details
-
SESecurityManager
public SESecurityManager()
-
-
Method Details
-
initialise
public static void initialise() -
exitVM
public static void exitVM(int status) -
stopThread
-
installAuthenticator
public static void installAuthenticator() -
resetTrustStore
public static boolean resetTrustStore(boolean test_only) -
getKeystoreName
-
getKeystorePassword
-
getSSLServerSocketFactory
- Throws:
Exception
-
getTrustManagerFactory
-
getAllTrustingTrustManager
-
getAllTrustingTrustManager
-
getSSLSocketFactory
-
installServerCertificates
-
installServerCertificates
-
createSelfSignedCertificate
public static Certificate createSelfSignedCertificate(String alias, String cert_dn, int strength) throws Exception - Throws:
Exception
-
getKeyDetails
- Throws:
Exception
-
getPasswordAuthentication
-
setPasswordAuthenticationOutcome
-
addPasswordListener
-
removePasswordListener
-
clearPasswords
public static void clearPasswords() -
setThreadPasswordHandler
-
unsetThreadPasswordHandler
public static void unsetThreadPasswordHandler() -
setPasswordHandler
-
addCertificateListener
-
setCertificateHandler
-
removeCertificateListener
-
getClassContext
-
filterNetworkInterfaces
-