public final class SSLConf extends Object
| Constructor and Description |
|---|
SSLConf() |
| Modifier and Type | Method and Description |
|---|---|
static int |
apply(long cctx,
String name,
String value)
Apply a command to an SSL_CONF context.
|
static void |
assign(long cctx,
long ctx)
Assign an SSL context to an SSL_CONF context.
|
static int |
check(long cctx,
String name,
String value)
Check a command with an SSL_CONF context.
|
static int |
finish(long cctx)
Finish commands for an SSL_CONF context.
|
static void |
free(long cctx)
Free the resources used by the context
|
static long |
make(long pool,
int flags)
Create a new SSL_CONF context.
|
public static long make(long pool,
int flags)
throws Exception
pool - The pool to use.flags - The SSL_CONF flags to use. It can be any combination of
the following:
SSL.SSL_CONF_FLAG_CMDLINESSL.SSL_CONF_FLAG_FILESSL.SSL_CONF_FLAG_CLIENTSSL.SSL_CONF_FLAG_SERVERSSL.SSL_CONF_FLAG_SHOW_ERRORSSSL.SSL_CONF_FLAG_CERTIFICATE
Exception - If the SSL_CONF context could not be createdpublic static void free(long cctx)
cctx - SSL_CONF context to free.public static int check(long cctx,
String name,
String value)
throws Exception
cctx - SSL_CONF context to use.name - command name.value - command value.SSL_CONF_cmd_value_type
call. Unknown types will result in an exception, as well as
file and directory types with invalid file or directory names.Exception - If the check fails.public static void assign(long cctx,
long ctx)
apply(long, String, String) will be
applied to this SSL context.cctx - SSL_CONF context to use.ctx - SSL context to assign to the given SSL_CONF context.public static int apply(long cctx,
String name,
String value)
throws Exception
cctx - SSL_CONF context to use.name - command name.value - command value.SSL_CONF_cmd callException - If the SSL_CONF context is 0public static int finish(long cctx)
cctx - SSL_CONF context to use.SSL_CONF_CTX_finish callCopyright © 2000-2022 Apache Software Foundation. All Rights Reserved.