@ExperimentalApi(value="Only needed with experimental builders") public class GrpcSslContexts extends Object
Modifier and Type | Method and 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 |
forClient()
Creates a SslContextBuilder with ciphers and APN appropriate for gRPC.
|
static SslContextBuilder |
forServer(File keyCertChainFile,
File keyFile)
Creates a SslContextBuilder with ciphers and APN appropriate for gRPC.
|
static SslContextBuilder |
forServer(File keyCertChainFile,
File keyFile,
String keyPassword)
Creates a SslContextBuilder with ciphers and APN appropriate for gRPC.
|
public static SslContextBuilder forClient()
public static SslContextBuilder forServer(File keyCertChainFile, File keyFile)
public static SslContextBuilder forServer(File keyCertChainFile, File keyFile, String keyPassword)
public static SslContextBuilder configure(SslContextBuilder builder)
@ExperimentalApi public static SslContextBuilder configure(SslContextBuilder builder, SslProvider provider)