- 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 SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description GrpcTlsDescriptorbuild()Create and return a new instance ofGrpcTlsDescriptor.GrpcTlsDescriptor.Builderenabled(boolean enabled)Enable or disable TLS.GrpcTlsDescriptor.BuilderjdkSSL(boolean jdkSSL)Sets the type of SSL implementation to be used.GrpcTlsDescriptor.BuildertlsCaCert(Resource caCert)Set the CA (certificate authority) certificate path.GrpcTlsDescriptor.BuildertlsCert(Resource tlsCert)Set the client tlsCert path.GrpcTlsDescriptor.BuildertlsKey(Resource tlsKey)Set the client private key path.
 
- 
- 
- 
Method Detail- 
enabledpublic 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
 
 - 
jdkSSLpublic 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
 
 - 
tlsCertpublic 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
 
 - 
tlsKeypublic 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
 
 - 
tlsCaCertpublic 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
 
 - 
buildpublic GrpcTlsDescriptor build() Create and return a new instance ofGrpcTlsDescriptor.- Specified by:
- buildin interface- Builder<GrpcTlsDescriptor>
- Returns:
- a new instance of GrpcTlsDescriptor
 
 
- 
 
-