Top Constructors Methods
org.apache.tomcat.jni

public final Class SSLConf

extends Object
Class Inheritance

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static native int

Returns:

The result of the native SSL_CONF_cmd call
apply
(long
SSL_CONF context to use.
cctx
,
String
command name.
name
,
String
command value.
value
)

Apply a command to an SSL_CONF context.

public static native void
assign(long
SSL_CONF context to use.
cctx
,
long
SSL context to assign to the given SSL_CONF context.
ctx
)

Assign an SSL context to an SSL_CONF context.

public static native int

Returns:

The result of the check based on the 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.
check
(long
SSL_CONF context to use.
cctx
,
String
command name.
name
,
String
command value.
value
)

Check a command with an SSL_CONF context.

public static native int

Returns:

The result of the native SSL_CONF_CTX_finish call
finish
(long
SSL_CONF context to use.
cctx
)

Finish commands for an SSL_CONF context.

public static native void
free(long
SSL_CONF context to free.
cctx
)

Free the resources used by the context

public static native long

Returns:

The Java representation of a pointer to the newly created SSL_CONF Context
make
(long
The pool to use.
pool
,
int flags)

Create a new SSL_CONF context.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

SSLConfback to summary
public SSLConf()

Method Detail

applyback to summary
public static native int apply(long cctx, String name, String value) throws Exception

Apply a command to an SSL_CONF context.

Parameters
cctx:long

SSL_CONF context to use.

name:String

command name.

value:String

command value.

Returns:int

The result of the native SSL_CONF_cmd call

Exceptions
Exception:
If the SSL_CONF context is 0
See Also
OpenSSL SSL_CONF_cmd
assignback to summary
public static native void assign(long cctx, long ctx)

Assign an SSL context to an SSL_CONF context. All following calls to apply(long, String, String) will be applied to this SSL context.

Parameters
cctx:long

SSL_CONF context to use.

ctx:long

SSL context to assign to the given SSL_CONF context.

See Also
OpenSSL SSL_CONF_CTX_set_ssl_ctx
checkback to summary
public static native int check(long cctx, String name, String value) throws Exception

Check a command with an SSL_CONF context.

Parameters
cctx:long

SSL_CONF context to use.

name:String

command name.

value:String

command value.

Returns:int

The result of the check based on the 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.

Exceptions
Exception:
If the check fails.
See Also
OpenSSL SSL_CONF_cmd_value_type
finishback to summary
public static native int finish(long cctx)

Finish commands for an SSL_CONF context.

Parameters
cctx:long

SSL_CONF context to use.

Returns:int

The result of the native SSL_CONF_CTX_finish call

See Also
OpenSSL SSL_CONF_CTX_finish
freeback to summary
public static native void free(long cctx)

Free the resources used by the context

Parameters
cctx:long

SSL_CONF context to free.

See Also
OpenSSL SSL_CONF_CTX_free
makeback to summary
public static native long make(long pool, int flags) throws Exception

Create a new SSL_CONF context.

Parameters
pool:long

The pool to use.

flags:int

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
Returns:long

The Java representation of a pointer to the newly created SSL_CONF Context

Exceptions
Exception:
If the SSL_CONF context could not be created
See Also
OpenSSL SSL_CONF_CTX_new, OpenSSL SSL_CONF_CTX_set_flags