Uses of Class
io.grpc.ServerCredentials
-
Packages that use ServerCredentials Package Description io.grpc The gRPC core public API.io.grpc.netty The main transport implementation based on Netty, for both the client and the server.io.grpc.okhttp A lightweight transport based on OkHttp, mainly for use on Android (client-only).io.grpc.xds Library for gPRC proxyless service mesh using Envoy xDS protocol. -
-
Uses of ServerCredentials in io.grpc
Subclasses of ServerCredentials in io.grpc Modifier and Type Class Description class
ChoiceServerCredentials
Provides a list ofServerCredentials
, where any one may be used.class
InsecureServerCredentials
No server identity or encryption is to be used.class
TlsServerCredentials
TLS credentials, providing server identity and encryption.Methods in io.grpc that return ServerCredentials Modifier and Type Method Description ServerCredentials
TlsServerCredentials.Builder. build()
Construct the credentials.static ServerCredentials
ChoiceServerCredentials. create(ServerCredentials... creds)
Constructs with the providedcreds
as options, with preferred credentials first.static ServerCredentials
InsecureServerCredentials. create()
static ServerCredentials
TlsServerCredentials. create(File certChain, File privateKey)
Creates an instance using provided certificate chain and private key.static ServerCredentials
TlsServerCredentials. create(InputStream certChain, InputStream privateKey)
Creates an instance using provided certificate chain and private key.Methods in io.grpc that return types with arguments of type ServerCredentials Modifier and Type Method Description List<ServerCredentials>
ChoiceServerCredentials. getCredentialsList()
Non-empty list of credentials, in preference order.Methods in io.grpc with parameters of type ServerCredentials Modifier and Type Method Description static ServerCredentials
ChoiceServerCredentials. create(ServerCredentials... creds)
Constructs with the providedcreds
as options, with preferred credentials first.static ServerBuilder<?>
Grpc. newServerBuilderForPort(int port, ServerCredentials creds)
Static factory for creating a new ServerBuilder.protected ServerProvider.NewServerBuilderResult
ServerProvider. newServerBuilderForPort(int port, ServerCredentials creds)
Creates a new builder with the given port and credentials. -
Uses of ServerCredentials in io.grpc.netty
Methods in io.grpc.netty that return ServerCredentials Modifier and Type Method Description static ServerCredentials
NettySslContextServerCredentials. create(SslContext sslContext)
Create a credential using Netty's SslContext as configuration.Methods in io.grpc.netty with parameters of type ServerCredentials Modifier and Type Method Description static NettyServerBuilder
NettyServerBuilder. forAddress(SocketAddress address, ServerCredentials creds)
Creates a server builder configured with the givenSocketAddress
.static NettyServerBuilder
NettyServerBuilder. forPort(int port, ServerCredentials creds)
Creates a server builder that will bind to the given port. -
Uses of ServerCredentials in io.grpc.okhttp
Methods in io.grpc.okhttp that return ServerCredentials Modifier and Type Method Description static ServerCredentials
SslSocketFactoryServerCredentials. create(SSLSocketFactory factory)
static ServerCredentials
SslSocketFactoryServerCredentials. create(SSLSocketFactory factory, ConnectionSpec connectionSpec)
Methods in io.grpc.okhttp with parameters of type ServerCredentials Modifier and Type Method Description static OkHttpServerBuilder
OkHttpServerBuilder. forPort(int port, ServerCredentials creds)
Creates a builder for a server listening onport
.static OkHttpServerBuilder
OkHttpServerBuilder. forPort(SocketAddress address, ServerCredentials creds)
Creates a builder for a server listening onaddress
. -
Uses of ServerCredentials in io.grpc.xds
Methods in io.grpc.xds that return ServerCredentials Modifier and Type Method Description static ServerCredentials
XdsServerCredentials. create(ServerCredentials fallback)
Creates credentials to be configured by xDS, falling back to other credentials if no TLS configuration is provided by xDS.Methods in io.grpc.xds with parameters of type ServerCredentials Modifier and Type Method Description static ServerCredentials
XdsServerCredentials. create(ServerCredentials fallback)
Creates credentials to be configured by xDS, falling back to other credentials if no TLS configuration is provided by xDS.static XdsServerBuilder
XdsServerBuilder. forPort(int port, ServerCredentials serverCredentials)
Creates a gRPC server builder for the given port.
-