Package io.helidon.grpc.core
Class GrpcTlsDescriptor.Builder
- java.lang.Object
-
- io.helidon.grpc.core.GrpcTlsDescriptor.Builder
-
- All Implemented Interfaces:
Builder<GrpcTlsDescriptor>
,Supplier<GrpcTlsDescriptor>
- Enclosing class:
- GrpcTlsDescriptor
public static class GrpcTlsDescriptor.Builder extends Object implements Builder<GrpcTlsDescriptor>
Builder to build a new instance ofGrpcTlsDescriptor
.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GrpcTlsDescriptor
build()
Create and return a new instance ofGrpcTlsDescriptor
.GrpcTlsDescriptor.Builder
enabled(boolean enabled)
Enable or disable TLS.GrpcTlsDescriptor.Builder
jdkSSL(boolean jdkSSL)
Sets the type of SSL implementation to be used.GrpcTlsDescriptor.Builder
tlsCaCert(Resource caCert)
Set the CA (certificate authority) certificate path.GrpcTlsDescriptor.Builder
tlsCert(Resource tlsCert)
Set the client tlsCert path.GrpcTlsDescriptor.Builder
tlsKey(Resource tlsKey)
Set the client private key path.
-
-
-
Method Detail
-
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 ofGrpcTlsDescriptor
.- Specified by:
build
in interfaceBuilder<GrpcTlsDescriptor>
- Returns:
- a new instance of
GrpcTlsDescriptor
-
-