Package io.grpc.netty
Class GrpcSslContexts
- java.lang.Object
-
- io.grpc.netty.GrpcSslContexts
-
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/1784") public class GrpcSslContexts extends Object
Utility for configuring SslContext for gRPC.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SslContextBuilder
configure(SslContextBuilder builder)
Set ciphers and APN appropriate for gRPC.static SslContextBuilder
configure(SslContextBuilder builder, SslProvider provider)
Set ciphers and APN appropriate for gRPC.static SslContextBuilder
configure(SslContextBuilder builder, Provider jdkProvider)
Set ciphers and APN appropriate for gRPC.static SslContextBuilder
forClient()
Creates an SslContextBuilder with ciphers and APN appropriate for gRPC.static SslContextBuilder
forServer(File keyCertChainFile, File keyFile)
Creates an SslContextBuilder with ciphers and APN appropriate for gRPC.static SslContextBuilder
forServer(File keyCertChainFile, File keyFile, String keyPassword)
Creates an SslContextBuilder with ciphers and APN appropriate for gRPC.static SslContextBuilder
forServer(InputStream keyCertChain, InputStream key)
Creates an SslContextBuilder with ciphers and APN appropriate for gRPC.static SslContextBuilder
forServer(InputStream keyCertChain, InputStream key, String keyPassword)
Creates an SslContextBuilder with ciphers and APN appropriate for gRPC.
-
-
-
Method Detail
-
forClient
public static SslContextBuilder forClient()
Creates an SslContextBuilder with ciphers and APN appropriate for gRPC.
-
forServer
public static SslContextBuilder forServer(File keyCertChainFile, File keyFile)
Creates an SslContextBuilder with ciphers and APN appropriate for gRPC.
-
forServer
public static SslContextBuilder forServer(File keyCertChainFile, File keyFile, String keyPassword)
Creates an SslContextBuilder with ciphers and APN appropriate for gRPC.
-
forServer
public static SslContextBuilder forServer(InputStream keyCertChain, InputStream key)
Creates an SslContextBuilder with ciphers and APN appropriate for gRPC.
-
forServer
public static SslContextBuilder forServer(InputStream keyCertChain, InputStream key, String keyPassword)
Creates an SslContextBuilder with ciphers and APN appropriate for gRPC.
-
configure
@CanIgnoreReturnValue public static SslContextBuilder configure(SslContextBuilder builder)
Set ciphers and APN appropriate for gRPC. Precisely what is set is permitted to change, so if an application requires particular settings it should override the options set here.
-
configure
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/1784") @CanIgnoreReturnValue public static SslContextBuilder configure(SslContextBuilder builder, SslProvider provider)
Set ciphers and APN appropriate for gRPC. Precisely what is set is permitted to change, so if an application requires particular settings it should override the options set here.
-
configure
@CanIgnoreReturnValue public static SslContextBuilder configure(SslContextBuilder builder, Provider jdkProvider)
Set ciphers and APN appropriate for gRPC. Precisely what is set is permitted to change, so if an application requires particular settings it should override the options set here.
-
-