Class GrpcSslConfiguration

java.lang.Object
io.micronaut.grpc.server.GrpcSslConfiguration

@ConfigurationProperties("grpc.server.ssl") public class GrpcSslConfiguration extends Object
Configuration for the SSL properties of GRPC.
Since:
1.0
Author:
graemerocher
  • Constructor Details

    • GrpcSslConfiguration

      public GrpcSslConfiguration()
  • Method Details

    • getCertChain

      public Optional<String> getCertChain()
      Returns:
      The cert chain
    • setCertChain

      public void setCertChain(@Nullable String certChain)
      Parameters:
      certChain - Sets the cert chain
    • getPrivateKey

      public Optional<String> getPrivateKey()
      Returns:
      The private key
    • setPrivateKey

      public void setPrivateKey(@Nullable String privateKey)
      Parameters:
      privateKey - Sets the private key
    • getTrustCertificates

      public Optional<String> getTrustCertificates()
      The location of the PEM-encoded CA certificates used to verify client certificates.
      Returns:
      The trust certificates location
      Since:
      5.3.0
    • setTrustCertificates

      public void setTrustCertificates(@Nullable String trustCertificates)
      Sets the location of the PEM-encoded CA certificates used to verify client certificates, for example classpath:ca.crt or file:/etc/grpc/ca.crt. Without it, the JVM's default trust store is used.
      Parameters:
      trustCertificates - The trust certificates location
      Since:
      5.3.0
    • getClientAuth

      public io.netty.handler.ssl.ClientAuth getClientAuth()
      Whether clients must present a certificate.
      Returns:
      The client authentication mode, ClientAuth.NONE by default
      Since:
      5.3.0
    • setClientAuth

      public void setClientAuth(@Nullable io.netty.handler.ssl.ClientAuth clientAuth)
      Sets whether clients must present a certificate: none (the default), optional or require. Use require for mutual TLS.
      Parameters:
      clientAuth - The client authentication mode
      Since:
      5.3.0