MCPcopy Create free account
hub / github.com/apache/tomcat / isTLSRequestAttribute

Method isTLSRequestAttribute

java/org/apache/catalina/util/TLSUtil.java:42–52  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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}

Callers 2

getAttributeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected