ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/java/org/apache/tomcat/jni/SSLConf.java

Path
ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/java/org/apache/tomcat/jni/SSLConf.java
Status
scanned
Type
file
Name
SSLConf.java
Extension
.java
Programming language
Java
Mime type
text/html
File type
HTML document, ASCII text, with CRLF line terminators
Tag

      
    
Rootfs path

      
    
Size
4398 (4.3 KB)
MD5
c43af67ed175cc133e6f7c9113d0bb17
SHA1
93fe5cb5378229c1077d1b62bf4cbf3fc5e151cb
SHA256
eca19e41c0214cf0babc8daebf218d7e95ed840cb3935224c81a701ec094eb92
SHA512

      
    
SHA1_git
5134bed5cbacc68d6583f791efbe706e34d4518f
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
SSLConf.java | 4.3 KB |

/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.tomcat.jni; public final class SSLConf { /** * Create a new SSL_CONF context. * * @param pool The pool to use. * @param flags The SSL_CONF flags to use. It can be any combination of the following: * * <PRE> * {@link SSL#SSL_CONF_FLAG_CMDLINE} * {@link SSL#SSL_CONF_FLAG_FILE} * {@link SSL#SSL_CONF_FLAG_CLIENT} * {@link SSL#SSL_CONF_FLAG_SERVER} * {@link SSL#SSL_CONF_FLAG_SHOW_ERRORS} * {@link SSL#SSL_CONF_FLAG_CERTIFICATE} * </PRE> * * @return The Java representation of a pointer to the newly created SSL_CONF Context * * @throws Exception If the SSL_CONF context could not be created * * @see <a href="https://www.openssl.org/docs/man1.0.2/ssl/SSL_CONF_CTX_new.html">OpenSSL SSL_CONF_CTX_new</a> * @see <a href="https://www.openssl.org/docs/man1.0.2/ssl/SSL_CONF_CTX_set_flags.html">OpenSSL * SSL_CONF_CTX_set_flags</a> */ public static native long make(long pool, int flags) throws Exception; /** * Free the resources used by the context * * @param cctx SSL_CONF context to free. * * @see <a href="https://www.openssl.org/docs/man1.0.2/ssl/SSL_CONF_CTX_new.html">OpenSSL SSL_CONF_CTX_free</a> */ public static native void free(long cctx); /** * Check a command with an SSL_CONF context. * * @param cctx SSL_CONF context to use. * @param name command name. * @param value command value. * * @return The result of the check based on the {@code 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. * * @throws Exception If the check fails. * * @see <a href="https://www.openssl.org/docs/man1.0.2/ssl/SSL_CONF_cmd.html">OpenSSL SSL_CONF_cmd_value_type</a> */ public static native int check(long cctx, String name, String value) throws Exception; /** * Assign an SSL context to an SSL_CONF context. All following calls to {@link #apply(long, String, String)} will be * applied to this SSL context. * * @param cctx SSL_CONF context to use. * @param ctx SSL context to assign to the given SSL_CONF context. * * @see <a href="https://www.openssl.org/docs/man1.0.2/ssl/SSL_CONF_CTX_set_ssl_ctx.html">OpenSSL * SSL_CONF_CTX_set_ssl_ctx</a> */ public static native void assign(long cctx, long ctx); /** * Apply a command to an SSL_CONF context. * * @param cctx SSL_CONF context to use. * @param name command name. * @param value command value. * * @return The result of the native {@code SSL_CONF_cmd} call * * @throws Exception If the SSL_CONF context is {@code 0} * * @see <a href="https://www.openssl.org/docs/man1.0.2/ssl/SSL_CONF_cmd.html">OpenSSL SSL_CONF_cmd</a> */ public static native int apply(long cctx, String name, String value) throws Exception; /** * Finish commands for an SSL_CONF context. * * @param cctx SSL_CONF context to use. * * @return The result of the native {@code SSL_CONF_CTX_finish} call * * @see <a href="https://www.openssl.org/docs/man1.0.2/ssl/SSL_CONF_CTX_set_flags.html">OpenSSL * SSL_CONF_CTX_finish</a> */ public static native int finish(long cctx); }
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
19.48
Copyrights

      
    
Holders

      
    
Authors

      
    
License detections License expression License expression SPDX
apache_2_0-4bde3f57-78aa-4201-96bf-531cba09e7de apache-2.0 Apache-2.0
URL Start line End line
http://www.apache.org/licenses/LICENSE-2.0 9 9
https://www.openssl.org/docs/man1.0.2/ssl/SSL_CONF_CTX_new.html 40 40
https://www.openssl.org/docs/man1.0.2/ssl/SSL_CONF_CTX_set_flags.html 41 41
https://www.openssl.org/docs/man1.0.2/ssl/SSL_CONF_cmd.html 67 67
https://www.openssl.org/docs/man1.0.2/ssl/SSL_CONF_CTX_set_ssl_ctx.html 78 78