ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/java/org/apache/tomcat/util/net/SSLImplementation.java

Path
ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/java/org/apache/tomcat/util/net/SSLImplementation.java
Status
scanned
Type
file
Name
SSLImplementation.java
Extension
.java
Programming language
Java
Mime type
text/plain
File type
ASCII text, with CRLF line terminators
Tag

      
    
Rootfs path

      
    
Size
3207 (3.1 KB)
MD5
7c3384ea9a6c3f860041af83854074fb
SHA1
0d5f7b3680ee5d53679ccc6d91e648279ddadd6c
SHA256
81094cbddcae832d6008573b48cee251ea5f6bb552d439820b364f3206886ca2
SHA512

      
    
SHA1_git
62530e40b4b29184a43379d3154c8bc83af3ec49
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
SSLImplementation.java | 3.1 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.util.net; import java.util.List; import java.util.Map; import javax.net.ssl.SSLSession; import org.apache.juli.logging.Log; import org.apache.juli.logging.LogFactory; import org.apache.tomcat.util.net.jsse.JSSEImplementation; import org.apache.tomcat.util.res.StringManager; /** * Provides a factory and base implementation for the Tomcat specific mechanism that allows alternative SSL/TLS * implementations to be used without requiring the implementation of a full JSSE provider. */ public abstract class SSLImplementation { private static final Log logger = LogFactory.getLog(SSLImplementation.class); private static final StringManager sm = StringManager.getManager(SSLImplementation.class); /** * Obtain an instance (not a singleton) of the implementation with the given class name. * * @param className The class name of the required implementation or null to use the default (currently * {@link JSSEImplementation}). * * @return An instance of the required implementation * * @throws ClassNotFoundException If an instance of the requested class cannot be created */ public static SSLImplementation getInstance(String className) throws ClassNotFoundException { if (className == null) { return new JSSEImplementation(); } try { Class<?> clazz = Class.forName(className); return (SSLImplementation) clazz.getConstructor().newInstance(); } catch (Exception e) { String msg = sm.getString("sslImplementation.cnfe", className); if (logger.isDebugEnabled()) { logger.debug(msg, e); } throw new ClassNotFoundException(msg, e); } } /** * Obtain an instance of SSLSupport. * * @param session The SSL session * @param additionalAttributes Additional SSL attributes that are not available from the session. * * @return An instance of SSLSupport based on the given session and the provided additional attributes */ public abstract SSLSupport getSSLSupport(SSLSession session, Map<String,List<String>> additionalAttributes); public abstract SSLUtil getSSLUtil(SSLHostConfigCertificate certificate); }
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
33.33
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