Class X509TlsKeyStoreResolver

java.lang.Object
com.irurueta.authserver.authorization.api.web.x509.X509TlsKeyStoreResolver

public class X509TlsKeyStoreResolver extends Object
Decides which key store holds the server certificate of the dedicated TLS port: the configured one or, under the dev profile and with none configured, the generated one. Anything else is a configuration error that stops the startup, so the port is never opened with a certificate nobody chose.
  • Field Details

    • properties

      private final X509Properties properties
      Settings of the sign-in with a certificate.
    • developmentKeyStore

      private final org.springframework.beans.factory.ObjectProvider<DevX509KeyStore> developmentKeyStore
      The generator of the development key store, present only under the dev profile.
  • Constructor Details

    • X509TlsKeyStoreResolver

      public X509TlsKeyStoreResolver()
  • Method Details

    • resolve

      public X509TlsKeyStore resolve()
      Finds the key store.
      Returns:
      the key store.
      Throws:
      IllegalStateException - if none is configured and the development one is not available.