java.lang.Object
io.helidon.grpc.core.GrpcTlsDescriptor
GrpcTlsDescriptor contains details about configuring TLS of a
Channel
.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Builder to build a new instance ofGrpcTlsDescriptor
. -
Method Summary
Modifier and TypeMethodDescriptionstatic GrpcTlsDescriptor.Builder
builder()
Return a new instance ofGrpcTlsDescriptor.Builder
.static GrpcTlsDescriptor.Builder
Return an instance of builder based on the specified external config.static GrpcTlsDescriptor
Create an instance of a TLS configuration from external configuration source.boolean
Check if TLS is enabled.boolean
isJdkSSL()
Check if JDK SSL has be used.Get the CA (certificate authority) certificate path.tlsCert()
Get the tlsCert path.tlsKey()
Get the client private key path.
-
Method Details
-
builder
Return a new instance ofGrpcTlsDescriptor.Builder
.- Returns:
- a new instance of
GrpcTlsDescriptor.Builder
-
builder
Return an instance of builder based on the specified external config.- Parameters:
config
- external config- Returns:
- an instance of builder
-
create
Create an instance of a TLS configuration from external configuration source.- Parameters:
config
- external config- Returns:
- an instance of a TLS configuration
-
isEnabled
public boolean isEnabled()Check if TLS is enabled. If this is false, then none of the other configuration values are used.- Returns:
- true if TLS is enabled; false otherwise
-
isJdkSSL
public boolean isJdkSSL()Check if JDK SSL has be used. Only used for TLS enabled server channels.A Ignored by client channel.- Returns:
- true if JDK ssl has to be used; false otherwise
-
tlsCert
Get the tlsCert path. Can be either client or server cert.- Returns:
- the path to tls certificate
-
tlsKey
Get the client private key path. Can be either client or server private key.- Returns:
- the path to tls private key
-
tlsCaCert
Get the CA (certificate authority) certificate path.- Returns:
- the path to CA certificate
-