Uses of Class
io.grpc.ServerCredentials
Packages that use ServerCredentials
Package
Description
The gRPC core public API.
The main transport implementation based on Netty,
for both the client and the server.
-
Uses of ServerCredentials in io.grpc
Subclasses of ServerCredentials in io.grpcModifier and TypeClassDescriptionfinal class
Provides a list ofServerCredentials
, where any one may be used.final class
No server identity or encryption is to be used.final class
TLS credentials, providing server identity and encryption.Methods in io.grpc that return ServerCredentialsModifier and TypeMethodDescriptionTlsServerCredentials.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
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 ServerCredentialsModifier and TypeMethodDescriptionChoiceServerCredentials.getCredentialsList()
Non-empty list of credentials, in preference order.Methods in io.grpc with parameters of type ServerCredentialsModifier and TypeMethodDescriptionstatic 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.InternalServerProvider.newServerBuilderForPort
(ServerProvider provider, int port, ServerCredentials creds) 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 ServerCredentialsModifier and TypeMethodDescriptionstatic ServerCredentials
InternalNettyServerCredentials.create
(InternalProtocolNegotiator.ProtocolNegotiator negotiator) Creates aServerCredentials
that will use the providednegotiator
.static ServerCredentials
InternalNettyServerCredentials.create
(InternalProtocolNegotiator.ServerFactory negotiator) Creates aServerCredentials
that will use the providednegotiator
.static ServerCredentials
NettySslContextServerCredentials.create
(io.netty.handler.ssl.SslContext sslContext) Create a credential using Netty's SslContext as configuration.Methods in io.grpc.netty with parameters of type ServerCredentialsModifier and TypeMethodDescriptionstatic 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.protected ServerProvider.NewServerBuilderResult
NettyServerProvider.newServerBuilderForPort
(int port, ServerCredentials creds) InternalNettyServerCredentials.toNegotiator
(ServerCredentials serverCredentials) Converts aServerCredentials
to a negotiator, in similar fashion as for a new server.