Class OpenSSLStatus
java.lang.Object
org.apache.tomcat.util.net.openssl.OpenSSLStatus
Holds OpenSSL status without the need to load other classes.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
OpenSSL library variant that has been identified -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic OpenSSLStatus.Name
getName()
static boolean
static long
static boolean
static boolean
static boolean
static boolean
static boolean
static void
setAvailable
(boolean available) static void
setInitialized
(boolean initialized) static void
setInstanceCreated
(boolean instanceCreated) static void
setLibraryInitialized
(boolean libraryInitialized) static void
setName
(OpenSSLStatus.Name name) static void
setUseOpenSSL
(boolean useOpenSSL) static void
setVersion
(long version)
-
Constructor Details
-
OpenSSLStatus
public OpenSSLStatus()
-
-
Method Details
-
isLibraryInitialized
public static boolean isLibraryInitialized() -
isInitialized
public static boolean isInitialized() -
isAvailable
public static boolean isAvailable() -
getUseOpenSSL
public static boolean getUseOpenSSL() -
isInstanceCreated
public static boolean isInstanceCreated() -
setLibraryInitialized
public static void setLibraryInitialized(boolean libraryInitialized) -
setInitialized
public static void setInitialized(boolean initialized) -
setAvailable
public static void setAvailable(boolean available) -
setUseOpenSSL
public static void setUseOpenSSL(boolean useOpenSSL) -
setInstanceCreated
public static void setInstanceCreated(boolean instanceCreated) -
getVersion
public static long getVersion()- Returns:
- the version
-
setVersion
public static void setVersion(long version) - Parameters:
version
- the version to set
-
getName
- Returns:
- the library name
-
setName
- Parameters:
name
- the name to set
-
isOpenSSL3
public static boolean isOpenSSL3()- Returns:
- true if running with OpenSSL 3.0+
-