Package org.springframework.boot.info
Class SslInfo
java.lang.Object
org.springframework.boot.info.SslInfo
Information about the certificates that the application uses.
- Since:
- 3.4.0
- Author:
- Jonatan Ivanov, Moritz Halbritter
-
Nested Class Summary
Modifier and TypeClassDescriptionfinal class
Info about a singleSslBundle
.final class
Info about a single certificate chain.final class
Info about a certificate.static class
Certificate validity info. -
Constructor Summary
ConstructorDescriptionSslInfo
(SslBundles sslBundles, Duration certificateValidityWarningThreshold) Creates a new instance.SslInfo
(SslBundles sslBundles, Duration certificateValidityWarningThreshold, Clock clock) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionReturns an SSL bundle by name.Returns information on all SSL bundles.
-
Constructor Details
-
SslInfo
Creates a new instance.- Parameters:
sslBundles
- theSslBundles
to extract the info fromcertificateValidityWarningThreshold
- the certificate validity warning threshold
-
SslInfo
Creates a new instance.- Parameters:
sslBundles
- theSslBundles
to extract the info fromcertificateValidityWarningThreshold
- the certificate validity warning thresholdclock
- theClock
to use- Since:
- 3.5.0
-
-
Method Details
-
getBundles
Returns information on all SSL bundles.- Returns:
- information on all SSL bundles
-
getBundle
Returns an SSL bundle by name.- Parameters:
name
- the name of the SSL bundle- Returns:
- the
SslInfo.BundleInfo
for the given SSL bundle - Throws:
NoSuchSslBundleException
- if a bundle with the provided name does not exist- Since:
- 3.5.0
-