Package ghidra.net
Class SSLContextInitializer
- java.lang.Object
-
- ghidra.net.SSLContextInitializer
-
- All Implemented Interfaces:
ModuleInitializer,ExtensionPoint,java.lang.Runnable
public class SSLContextInitializer extends java.lang.Object implements ModuleInitializer
Initialize the default SSLContext for use by SSL connections (e.g., https). It is the responsibility of the Application to properly invoke this initializer so that the default SSLContext may be established. While HTTPS URL connections will make use of this default SSLContext, other SSL connections may need to specify theApplicationSSLSocketFactoryto leverage the applications default SSLContext.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSSLContextInitializer.HttpsHostnameVerifierHttpsHostnameVerifieris required by HttpsURLConnection even if it does nothing.-
Nested classes/interfaces inherited from interface ghidra.util.classfinder.ExtensionPoint
ExtensionPoint.Exclude, ExtensionPoint.Util
-
-
Constructor Summary
Constructors Constructor Description SSLContextInitializer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetName()static booleaninitialize()Initialize default SSLContextstatic booleaninitialize(boolean reset)Initialize default SSLContext with optional reset.voidrun()
-
-
-
Method Detail
-
initialize
public static boolean initialize(boolean reset)
Initialize default SSLContext with optional reset. This method is primarily intended for testing.- Parameters:
if- true a complete reset will be done to force use of any new certificate or keystores previously used.- Returns:
- true if successful, else false (see logged error)
-
initialize
public static boolean initialize()
Initialize default SSLContext- Returns:
- true if successful, else false (see logged error)
-
run
public void run()
- Specified by:
runin interfacejava.lang.Runnable
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfaceModuleInitializer
-
-