ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/java/org/apache/catalina/util/TLSUtil.java

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

      
    
Rootfs path

      
    
Size
2016 (2.0 KB)
MD5
9530810fda5f4b9c7ec0564e82eb8850
SHA1
10ae0fc0e0eee346bd30ec92ddcaa354a83ec7f1
SHA256
622a0b5fc5d88f42b9becf22464ca90f045d4313bee6e1e660702e6398d07416
SHA512

      
    
SHA1_git
66f5bc0f14f3da153fbd6f97393867f708cfa072
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
TLSUtil.java | 2.0 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.catalina.util; import org.apache.catalina.Globals; import org.apache.tomcat.util.net.SSLSupport; public class TLSUtil { /** * Determines if the named request attribute is used to pass information about the TLS configuration of the * connection to the application. Both the standard request attributes defined by the Servlet specification and * Tomcat specific attributes are supported. * * @param name The attribute name to test * * @return {@code true} if the attribute is used to pass TLS configuration information, otherwise {@code false} */ @SuppressWarnings("deprecation") public static boolean isTLSRequestAttribute(String name) { return switch (name) { case Globals.CERTIFICATES_ATTR, Globals.SECURE_PROTOCOL_ATTR, Globals.CIPHER_SUITE_ATTR, Globals.KEY_SIZE_ATTR, Globals.SSL_SESSION_ID_ATTR, Globals.SSL_SESSION_MGR_ATTR, SSLSupport.PROTOCOL_VERSION_KEY, SSLSupport.REQUESTED_PROTOCOL_VERSIONS_KEY, SSLSupport.REQUESTED_CIPHERS_KEY -> true; default -> false; }; } }
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
47.41
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