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 Summary
Modifier and TypeMethodDescriptionbuild()
Create and return a new instance ofGrpcTlsDescriptor
.enabled
(boolean enabled) Enable or disable TLS.jdkSSL
(boolean jdkSSL) Sets the type of SSL implementation to be used.Set the CA (certificate authority) certificate path.Set the client tlsCert path.Set the client private key path.
-
Method Details
-
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
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
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
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
Set the CA (certificate authority) certificate path.- Parameters:
caCert
- the path to CA certificate- Returns:
- this instance for fluent API
-
build
Create and return a new instance ofGrpcTlsDescriptor
.- Specified by:
build
in interfaceBuilder<GrpcTlsDescriptor.Builder,
GrpcTlsDescriptor> - Returns:
- a new instance of
GrpcTlsDescriptor
-