Package com.biglybt.core.security
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 void
static void
static void
static Certificate
createSelfSignedCertificate
(String alias, String cert_dn, int strength) static void
exitVM
(int status) static boolean
filterNetworkInterfaces
(List<NetworkInterface> interfaces) static TrustManager[]
static TrustManager[]
getAllTrustingTrustManager
(X509TrustManager delegate) static Class[]
static SEKeyDetails
getKeyDetails
(String alias) static String
static String
static PasswordAuthentication
getPasswordAuthentication
(String realm, URL tracker) static SSLServerSocketFactory
static SSLSocketFactory
static TrustManagerFactory
static void
static void
static SSLSocketFactory
installServerCertificates
(String alias, String ip, int port) static SSLSocketFactory
installServerCertificates
(URL https_url) static void
static void
static boolean
resetTrustStore
(boolean test_only) static void
static void
setPasswordAuthenticationOutcome
(String realm, URL tracker, boolean success) static void
setPasswordHandler
(URL url, SEPasswordListener l) static void
static void
stopThread
(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
-