public final class SSLConf
extends java.lang.Object
Constructor and Description |
---|
SSLConf() |
Modifier and Type | Method and Description |
---|---|
static int |
apply(long cctx,
java.lang.String name,
java.lang.String value)
Apply a command to an SSL_CONF context.
|
static void |
assign(long cctx,
long ctx)
Assign an SSL context to a SSL_CONF context.
|
static int |
check(long cctx,
java.lang.String name,
java.lang.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 java.lang.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_CMDLINE
SSL.SSL_CONF_FLAG_FILE
SSL.SSL_CONF_FLAG_CLIENT
SSL.SSL_CONF_FLAG_SERVER
SSL.SSL_CONF_FLAG_SHOW_ERRORS
SSL.SSL_CONF_FLAG_CERTIFICATE
java.lang.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, java.lang.String name, java.lang.String value) throws java.lang.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.java.lang.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, java.lang.String name, java.lang.String value) throws java.lang.Exception
cctx
- SSL_CONF context to use.name
- command name.value
- command value.SSL_CONF_cmd
calljava.lang.Exception
- If the SSL_CONF context is 0
public static int finish(long cctx)
cctx
- SSL_CONF context to use.SSL_CONF_CTX_finish
callCopyright © 2000-2021 Apache Software Foundation. All Rights Reserved.