Class GrpcTlsDescriptor.Builder

java.lang.Object
io.helidon.grpc.core.GrpcTlsDescriptor.Builder
All Implemented Interfaces:
Builder<GrpcTlsDescriptor.Builder,GrpcTlsDescriptor>, Supplier<GrpcTlsDescriptor>
Enclosing class:
GrpcTlsDescriptor

public static class GrpcTlsDescriptor.Builder extends Object implements Builder<GrpcTlsDescriptor.Builder,GrpcTlsDescriptor>
Builder to build a new instance of GrpcTlsDescriptor.
  • Method Details

    • enabled

      public GrpcTlsDescriptor.Builder enabled(boolean enabled)
      Enable or disable TLS. If enabled is false, then the rest of the TLS configuration properties are ignored.
      Parameters:
      enabled - true to enable, false otherwise
      Returns:
      this instance for fluent API
    • jdkSSL

      public GrpcTlsDescriptor.Builder jdkSSL(boolean jdkSSL)
      Sets the type of SSL implementation to be used.
      Parameters:
      jdkSSL - true to use JDK based SSL, false otherwise
      Returns:
      this instance for fluent API
    • tlsCert

      public GrpcTlsDescriptor.Builder tlsCert(Resource tlsCert)
      Set the client tlsCert path. Required only if mutual auth is desired.
      Parameters:
      tlsCert - the path to client's certificate
      Returns:
      this instance for fluent API
    • tlsKey

      public GrpcTlsDescriptor.Builder tlsKey(Resource tlsKey)
      Set the client private key path. Required only if mutual auth is desired.
      Parameters:
      tlsKey - the 's TLS private key
      Returns:
      this instance for fluent API
    • tlsCaCert

      public GrpcTlsDescriptor.Builder tlsCaCert(Resource caCert)
      Set the CA (certificate authority) certificate path.
      Parameters:
      caCert - the path to CA certificate
      Returns:
      this instance for fluent API
    • build

      public GrpcTlsDescriptor build()
      Create and return a new instance of GrpcTlsDescriptor.
      Specified by:
      build in interface Builder<GrpcTlsDescriptor.Builder,GrpcTlsDescriptor>
      Returns:
      a new instance of GrpcTlsDescriptor