Class SslConfiguration.KeyStoreConfiguration

java.lang.Object
io.micronaut.http.ssl.SslConfiguration.KeyStoreConfiguration
Direct Known Subclasses:
ClientSslConfiguration.DefaultKeyStoreConfiguration, DefaultSslConfiguration.DefaultKeyStoreConfiguration, ServerSslConfiguration.DefaultKeyStoreConfiguration, ServiceHttpClientConfiguration.ServiceSslClientConfiguration.DefaultKeyStoreConfiguration
Enclosing class:
SslConfiguration

public static class SslConfiguration.KeyStoreConfiguration extends Object
Configuration properties for SSL key store.
  • Field Details

  • Constructor Details

    • KeyStoreConfiguration

      public KeyStoreConfiguration()
  • Method Details

    • getPath

      public Optional<String> getPath()
      The path to the key store (typically .jks). Can also point to a PEM file containing a private key followed by the X.509 trust chain. Can use classpath:, file:, string: or base64:.
      Returns:
      The resource containing the key store
    • getPassword

      public Optional<String> getPassword()
      Returns:
      The password to the keyStore
    • getType

      public Optional<String> getType()
      Returns:
      The key store type
    • getProvider

      public Optional<String> getProvider()
      Returns:
      Provider for the key store.
    • setPath

      public void setPath(String path)
      The path to the key store (typically .jks). Can also point to a PEM file containing a private key followed by the X.509 trust chain. Can use classpath:, file:, string: or base64:.
      Parameters:
      path - The resource containing the key store
    • setPassword

      public void setPassword(String password)
      Sets the password to use for the keystore.
      Parameters:
      password - The password
    • setType

      public void setType(String type)
      Sets the type of keystore.
      Parameters:
      type - The keystore type
    • setProvider

      public void setProvider(String provider)
      Sets the keystore provider name.
      Parameters:
      provider - The provider
    • getKeyPath

      @Nullable public @Nullable String getKeyPath()
      A path to a PEM file containing the private key of the server. Can use classpath:, file:, string: or base64:. Cannot be set at the same time as the path property.
      Returns:
      The key path
      Since:
      4.10.0
    • setKeyPath

      public void setKeyPath(@Nullable @Nullable String keyPath)
      A path to a PEM file containing the private key. Can use classpath:, file:, string: or base64:. Cannot be set at the same time as the path property.
      Parameters:
      keyPath - The key path
      Since:
      4.10.0
    • getCertificatePath

      @Nullable public @Nullable String getCertificatePath()
      A path to a PEM file containing the certificate chain. Can use classpath:, file:, string: or base64:. Cannot be set at the same time as the path property.
      Returns:
      The certificate chain path
      Since:
      4.10.0
    • setCertificatePath

      public void setCertificatePath(@Nullable @Nullable String certificatePath)
      A path to a PEM file containing the certificate chain. Can use classpath:, file:, string: or base64:. Cannot be set at the same time as the path property.
      Parameters:
      certificatePath - The certificate chain path
      Since:
      4.10.0