diff --git a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/server/Ssl.java b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/server/Ssl.java index 6f6f21b1d0..1d3768eb16 100644 --- a/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/server/Ssl.java +++ b/spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/server/Ssl.java @@ -28,7 +28,7 @@ public class Ssl { private boolean enabled = true; - private ClientAuth clientAuth = ClientAuth.NONE; + private ClientAuth clientAuth; private String[] ciphers; @@ -78,12 +78,7 @@ public class Ssl { } public void setClientAuth(ClientAuth clientAuth) { - if (clientAuth == null) { - this.clientAuth = ClientAuth.NONE; - } - else { - this.clientAuth = clientAuth; - } + this.clientAuth = clientAuth; } /**