@ExperimentalApi(value="https://github.com/grpc/grpc-java/issues/1784") 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,
Provider jdkProvider)
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.
|
static SslContextBuilder |
forServer(InputStream keyCertChain,
InputStream key)
Creates a SslContextBuilder with ciphers and APN appropriate for gRPC.
|
static SslContextBuilder |
forServer(InputStream keyCertChain,
InputStream key,
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 forServer(InputStream keyCertChain, InputStream key)
public static SslContextBuilder forServer(InputStream keyCertChain, InputStream key, String keyPassword)
public static SslContextBuilder configure(SslContextBuilder builder)
@ExperimentalApi(value="https://github.com/grpc/grpc-java/issues/1784") public static SslContextBuilder configure(SslContextBuilder builder, SslProvider provider)
public static SslContextBuilder configure(SslContextBuilder builder, Provider jdkProvider)