@VisibleForTesting
    static int guessKeySize(@Nullable String cipherSuite) {
        if (cipherSuite == null) {
            return 0;
        }

        final int withIdx = cipherSuite.indexOf("_WITH_");
        final int startIdx;
        if (withIdx > 0) {
            startIdx = withIdx + 5; // Skip "_WITH" in the middle.
        } else {
            startIdx = cipherSuite.indexOf('_'); // Skip the first component ("TLS" or "SSL").
            if (startIdx < 0) {
                return 0;
            }
        }

        for (int i = 0; i < ALGORITHMS.length; i++) {
            if (cipherSuite.startsWith(ALGORITHMS[i], startIdx)) {
                return KEY_SIZES[i];
            }
        }

        // Unknown algorithm
        return 0;
    }
Fills the Servlet TLS attributes from {@link SSLSession} into {@code ServletRequest}.

@param session the {@link SSLSession} of the current connection.
@param setter the setter that will be invoked with the Servlet attribute name and value.
core/src/main/java/com/linecorp/armeria/internal/server/servlet/ServletTlsAttributes.java