Package totalcross.net.ssl
Class SSLUtil
- java.lang.Object
-
- totalcross.net.ssl.SSLUtil
-
public class SSLUtil extends java.lang.ObjectSome global helper functions.
-
-
Field Summary
Fields Modifier and Type Field Description static intCONFIG_SSL_MAX_CERTSstatic intCONFIG_X509_MAX_CA_CERTS
-
Constructor Summary
Constructors Constructor Description SSLUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static intbuildMode()Return the build mode of the axTLS project.static voiddisplayError(int error_code)Display the text string of the error.static intgetConfig(int which)static booleanhasPEM()Indicate if PEM is supported.static intmaxCACerts()Return the number of CA certificates that the client/server supports.static intmaxCerts()Return the number of chained certificates that the client/server supports.static java.lang.Stringversion()Return the version of the axTLS project.
-
-
-
Field Detail
-
CONFIG_SSL_MAX_CERTS
public static final int CONFIG_SSL_MAX_CERTS
- See Also:
- Constant Field Values
-
CONFIG_X509_MAX_CA_CERTS
public static final int CONFIG_X509_MAX_CA_CERTS
- See Also:
- Constant Field Values
-
-
Method Detail
-
getConfig
public static int getConfig(int which)
-
buildMode
public static int buildMode()
Return the build mode of the axTLS project.- Returns:
- The build mode is one of: - SSL_BUILD_SERVER_ONLY - SSL_BUILD_ENABLE_VERIFICATION - SSL_BUILD_ENABLE_CLIENT - SSL_BUILD_FULL_MODE
-
maxCerts
public static int maxCerts()
Return the number of chained certificates that the client/server supports.- Returns:
- The number of supported client/server certificates.
-
maxCACerts
public static int maxCACerts()
Return the number of CA certificates that the client/server supports.- Returns:
- The number of supported CA certificates.
-
hasPEM
public static boolean hasPEM()
Indicate if PEM is supported.- Returns:
- true if PEM supported.
-
displayError
public static void displayError(int error_code)
Display the text string of the error. See ssl.h for the error code list.- Parameters:
error_code- [in] The integer error code.
-
version
public static java.lang.String version()
Return the version of the axTLS project.
-
-