@Override
    public void customize(final ConfigurableServletWebServerFactory factory) {
        if (factory instanceof final TomcatServletWebServerFactory tomcat) {
            configureAjp(tomcat);
            configureHttp(tomcat);
            configureHttpProxy(tomcat);
            configureExtendedAccessLogValve(tomcat);
            configureRewriteValve(tomcat);
            configureSSLValve(tomcat);
            configureBasicAuthn(tomcat);
            configureRemoteUserValve(tomcat);
            configureErrorReportValve(tomcat);
            finalizeConnectors(tomcat);
        }
    }
This is {@link CasTomcatServletWebServerFactoryCustomizer}.

@author Misagh Moayyed
@since 6.1.0
webapp/cas-server-webapp-init-tomcat/src/main/java/org/apereo/cas/tomcat/CasTomcatServletWebServerFactoryCustomizer.java