parent
1909bac5c8
commit
402eb87847
|
@ -26,6 +26,7 @@ import org.apache.catalina.valves.AccessLogValve;
|
|||
import org.apache.catalina.valves.ErrorReportValve;
|
||||
import org.apache.catalina.valves.RemoteIpValve;
|
||||
import org.apache.coyote.AbstractProtocol;
|
||||
import org.apache.coyote.ajp.AbstractAjpProtocol;
|
||||
import org.apache.coyote.http11.AbstractHttp11Protocol;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
@ -464,6 +465,8 @@ class TomcatWebServerFactoryCustomizerTests {
|
|||
void ajpConnectorCanBeCustomized() {
|
||||
TomcatServletWebServerFactory factory = new TomcatServletWebServerFactory(0);
|
||||
factory.setProtocol("AJP/1.3");
|
||||
factory.addConnectorCustomizers(
|
||||
(connector) -> ((AbstractAjpProtocol<?>) connector.getProtocolHandler()).setSecretRequired(false));
|
||||
this.customizer.customize(factory);
|
||||
WebServer server = factory.getWebServer();
|
||||
server.start();
|
||||
|
|
|
@ -207,7 +207,7 @@
|
|||
<thymeleaf-layout-dialect.version>2.4.1</thymeleaf-layout-dialect.version>
|
||||
<thymeleaf-extras-data-attribute.version>2.0.1</thymeleaf-extras-data-attribute.version>
|
||||
<thymeleaf-extras-java8time.version>3.0.4.RELEASE</thymeleaf-extras-java8time.version>
|
||||
<tomcat.version>9.0.30</tomcat.version>
|
||||
<tomcat.version>9.0.31</tomcat.version>
|
||||
<unboundid-ldapsdk.version>4.0.14</unboundid-ldapsdk.version>
|
||||
<undertow.version>2.0.29.Final</undertow.version>
|
||||
<webjars-hal-browser.version>3325375</webjars-hal-browser.version>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2012-2019 the original author or authors.
|
||||
* Copyright 2012-2020 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
@ -152,7 +152,9 @@ class SslConnectorCustomizerTests {
|
|||
customizer.customize(connector);
|
||||
this.tomcat.start();
|
||||
SSLHostConfig sslHostConfig = connector.getProtocolHandler().findSslHostConfigs()[0];
|
||||
sslHostConfig.getCertificates(true);
|
||||
SSLHostConfig sslHostConfigWithDefaults = new SSLHostConfig();
|
||||
sslHostConfigWithDefaults.getCertificates(true);
|
||||
assertThat(sslHostConfig.getTruststoreFile())
|
||||
.isEqualTo(SslStoreProviderUrlStreamHandlerFactory.TRUST_STORE_URL);
|
||||
assertThat(sslHostConfig.getCertificateKeystoreFile())
|
||||
|
|
Loading…
Reference in New Issue