Class CertificateFileSslStoreProvider

java.lang.Object
org.springframework.boot.web.server.CertificateFileSslStoreProvider
All Implemented Interfaces:
SslStoreProvider

@Deprecated(since="3.1.0", forRemoval=true) public final class CertificateFileSslStoreProvider extends Object implements SslStoreProvider
Deprecated, for removal: This API element is subject to removal in a future version.
since 3.1.0 for removal in 3.3.0 in favor of registering a SslBundle backed by a PemSslStoreBundle.
An SslStoreProvider that creates key and trust stores from certificate and private key PEM files.
Since:
2.7.0
Author:
Scott Frederick
  • Method Summary

    Modifier and Type
    Method
    Description
    from(Ssl ssl)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Create an SslStoreProvider if the appropriate SSL properties are configured.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Return the password of the private key in the key store.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Return the key store that should be used.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Return the trust store that should be used.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • getKeyStore

      public KeyStore getKeyStore() throws Exception
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: SslStoreProvider
      Return the key store that should be used.
      Specified by:
      getKeyStore in interface SslStoreProvider
      Returns:
      the key store to use
      Throws:
      Exception - on load error
    • getTrustStore

      public KeyStore getTrustStore() throws Exception
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: SslStoreProvider
      Return the trust store that should be used.
      Specified by:
      getTrustStore in interface SslStoreProvider
      Returns:
      the trust store to use
      Throws:
      Exception - on load error
    • getKeyPassword

      public String getKeyPassword()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: SslStoreProvider
      Return the password of the private key in the key store.
      Specified by:
      getKeyPassword in interface SslStoreProvider
      Returns:
      the key password
    • from

      public static SslStoreProvider from(Ssl ssl)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Create an SslStoreProvider if the appropriate SSL properties are configured.
      Parameters:
      ssl - the SSL properties
      Returns:
      an SslStoreProvider or null