Skip to content

Commit 44b6014

Browse files
committed
Merge branch '3.4.x'
Closes gh-45015
2 parents ce7c1c2 + ec055de commit 44b6014

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/ssl/SslHealthIndicator.java

+4
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,23 @@
2828
import org.springframework.boot.info.SslInfo.BundleInfo;
2929
import org.springframework.boot.info.SslInfo.CertificateChainInfo;
3030
import org.springframework.boot.info.SslInfo.CertificateInfo;
31+
import org.springframework.util.Assert;
3132

3233
/**
3334
* {@link HealthIndicator} that checks the certificates the application uses and reports
3435
* {@link Status#OUT_OF_SERVICE} when a certificate is invalid.
3536
*
3637
* @author Jonatan Ivanov
38+
* @author Young Jae You
3739
* @since 3.4.0
3840
*/
3941
public class SslHealthIndicator extends AbstractHealthIndicator {
4042

4143
private final SslInfo sslInfo;
4244

4345
public SslHealthIndicator(SslInfo sslInfo) {
46+
super("SSL health check failed");
47+
Assert.notNull(sslInfo, "'sslInfo' must not be null");
4448
this.sslInfo = sslInfo;
4549
}
4650

0 commit comments

Comments
 (0)