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 @re
(String name)
| 40 | * @return {@code true} if the attribute is used to pass TLS configuration information, otherwise {@code false} |
| 41 | */ |
| 42 | @SuppressWarnings("deprecation") |
| 43 | public static boolean isTLSRequestAttribute(String name) { |
| 44 | return switch (name) { |
| 45 | case Globals.CERTIFICATES_ATTR, Globals.SECURE_PROTOCOL_ATTR, Globals.CIPHER_SUITE_ATTR, |
| 46 | Globals.KEY_SIZE_ATTR, Globals.SSL_SESSION_ID_ATTR, Globals.SSL_SESSION_MGR_ATTR, |
| 47 | SSLSupport.PROTOCOL_VERSION_KEY, SSLSupport.REQUESTED_PROTOCOL_VERSIONS_KEY, |
| 48 | SSLSupport.REQUESTED_CIPHERS_KEY -> |
| 49 | true; |
| 50 | default -> false; |
| 51 | }; |
| 52 | } |
| 53 | } |
no outgoing calls
no test coverage detected