Package org.apache.tomcat.jni
Class SSLConf
- java.lang.Object
- 
- org.apache.tomcat.jni.SSLConf
 
- 
 public final class SSLConf extends java.lang.Object
- 
- 
Constructor SummaryConstructors Constructor Description SSLConf()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static intapply(long cctx, java.lang.String name, java.lang.String value)Apply a command to an SSL_CONF context.static voidassign(long cctx, long ctx)Assign an SSL context to an SSL_CONF context.static intcheck(long cctx, java.lang.String name, java.lang.String value)Check a command with an SSL_CONF context.static intfinish(long cctx)Finish commands for an SSL_CONF context.static voidfree(long cctx)Free the resources used by the contextstatic longmake(long pool, int flags)Create a new SSL_CONF context.
 
- 
- 
- 
Method Detail- 
makepublic static long make(long pool, int flags) throws java.lang.ExceptionCreate a new SSL_CONF context.- Parameters:
- 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
- Returns:
- The Java representation of a pointer to the newly created SSL_CONF Context
- Throws:
- java.lang.Exception- If the SSL_CONF context could not be created
- See Also:
- OpenSSL SSL_CONF_CTX_new, OpenSSL SSL_CONF_CTX_set_flags
 
 - 
freepublic static void free(long cctx) Free the resources used by the context- Parameters:
- cctx- SSL_CONF context to free.
- See Also:
- OpenSSL SSL_CONF_CTX_free
 
 - 
checkpublic static int check(long cctx, java.lang.String name, java.lang.String value) throws java.lang.ExceptionCheck a command with an SSL_CONF context.- Parameters:
- cctx- SSL_CONF context to use.
- name- command name.
- value- command value.
- Returns:
- The result of the check based on the SSL_CONF_cmd_value_typecall. Unknown types will result in an exception, as well as file and directory types with invalid file or directory names.
- Throws:
- java.lang.Exception- If the check fails.
- See Also:
- OpenSSL SSL_CONF_cmd_value_type
 
 - 
assignpublic static void assign(long cctx, long ctx)Assign an SSL context to an SSL_CONF context. All following calls toapply(long, String, String)will be applied to this SSL context.- Parameters:
- cctx- SSL_CONF context to use.
- ctx- SSL context to assign to the given SSL_CONF context.
- See Also:
- OpenSSL SSL_CONF_CTX_set_ssl_ctx
 
 - 
applypublic static int apply(long cctx, java.lang.String name, java.lang.String value) throws java.lang.ExceptionApply a command to an SSL_CONF context.- Parameters:
- cctx- SSL_CONF context to use.
- name- command name.
- value- command value.
- Returns:
- The result of the native SSL_CONF_cmdcall
- Throws:
- java.lang.Exception- If the SSL_CONF context is- 0
- See Also:
- OpenSSL SSL_CONF_cmd
 
 - 
finishpublic static int finish(long cctx) Finish commands for an SSL_CONF context.- Parameters:
- cctx- SSL_CONF context to use.
- Returns:
- The result of the native SSL_CONF_CTX_finishcall
- See Also:
- OpenSSL SSL_CONF_CTX_finish
 
 
- 
 
-