类 SslInfo

java.lang.Object
org.springframework.boot.info.SslInfo

public class SslInfo extends Object
Information about the certificates that the application uses.
从以下版本开始:
3.4.0
作者:
Jonatan Ivanov, Moritz Halbritter
  • 构造器详细资料

    • SslInfo

      public SslInfo(SslBundles sslBundles, Duration certificateValidityWarningThreshold)
      Creates a new instance.
      参数:
      sslBundles - the SslBundles to extract the info from
      certificateValidityWarningThreshold - the certificate validity warning threshold
    • SslInfo

      public SslInfo(SslBundles sslBundles, Duration certificateValidityWarningThreshold, Clock clock)
      Creates a new instance.
      参数:
      sslBundles - the SslBundles to extract the info from
      certificateValidityWarningThreshold - the certificate validity warning threshold
      clock - the Clock to use
      从以下版本开始:
      3.5.0
  • 方法详细资料

    • getBundles

      public List<SslInfo.BundleInfo> getBundles()
      Returns information on all SSL bundles.
      返回:
      information on all SSL bundles
    • getBundle

      public SslInfo.BundleInfo getBundle(String name)
      Returns an SSL bundle by name.
      参数:
      name - the name of the SSL bundle
      返回:
      the SslInfo.BundleInfo for the given SSL bundle
      抛出:
      NoSuchSslBundleException - if a bundle with the provided name does not exist
      从以下版本开始:
      3.5.0