Package io.helidon.grpc.core
Class GrpcSslDescriptor.Builder
- java.lang.Object
-
- io.helidon.grpc.core.GrpcSslDescriptor.Builder
-
- All Implemented Interfaces:
Builder<GrpcSslDescriptor>,Supplier<GrpcSslDescriptor>
- Enclosing class:
- GrpcSslDescriptor
public static class GrpcSslDescriptor.Builder extends Object implements Builder<GrpcSslDescriptor>
Builder to build a new instance ofGrpcSslDescriptor.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GrpcSslDescriptorbuild()Create and return a new instance ofGrpcSslDescriptor.GrpcSslDescriptor.Builderenabled(boolean enabled)Enable or disable Ssl.GrpcSslDescriptor.BuilderjdkSSL(boolean jdkSSL)Sets the type of SSL implementation to be used.GrpcSslDescriptor.BuildertlsCaCert(String caCert)Set the CA (certificate authority) certificate path.GrpcSslDescriptor.BuildertlsCert(String tlsCert)Set the client tlsCert path.GrpcSslDescriptor.BuildertlsKey(String tlsKey)Set the client private key path.
-
-
-
Method Detail
-
enabled
public GrpcSslDescriptor.Builder enabled(boolean enabled)
Enable or disable Ssl. If enabled is false then the rest of the SslDescriptor properties are ignored.- Parameters:
enabled- true to enable, false otherwise- Returns:
- this instance for fluent API
-
jdkSSL
public GrpcSslDescriptor.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 GrpcSslDescriptor.Builder tlsCert(String 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 GrpcSslDescriptor.Builder tlsKey(String 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 GrpcSslDescriptor.Builder tlsCaCert(String caCert)
Set the CA (certificate authority) certificate path.- Parameters:
caCert- the path to CA certificate- Returns:
- this instance for fluent API
-
build
public GrpcSslDescriptor build()
Create and return a new instance ofGrpcSslDescriptor.- Specified by:
buildin interfaceBuilder<GrpcSslDescriptor>- Returns:
- a new instance of
GrpcSslDescriptor
-
-