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 classProvides a list ofServerCredentials, where any one may be used.final classNo server identity or encryption is to be used.final classTLS credentials, providing server identity and encryption.Fields in io.grpc with type parameters of type ServerCredentialsModifier and TypeFieldDescriptionprivate final List<ServerCredentials> ChoiceServerCredentials.credsMethods in io.grpc that return ServerCredentialsModifier and TypeMethodDescriptionTlsServerCredentials.Builder.build()Construct the credentials.static ServerCredentialsChoiceServerCredentials.create(ServerCredentials... creds) Constructs with the providedcredsas options, with preferred credentials first.static ServerCredentialsInsecureServerCredentials.create()static ServerCredentialsCreates an instance using provided certificate chain and private key.static ServerCredentialsTlsServerCredentials.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 ServerCredentialsChoiceServerCredentials.create(ServerCredentials... creds) Constructs with the providedcredsas 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.NewServerBuilderResultServerProvider.newServerBuilderForPort(int port, ServerCredentials creds) Creates a new builder with the given port and credentials.(package private) ServerBuilder<?> ServerRegistry.newServerBuilderForPort(int port, ServerCredentials creds) Constructors in io.grpc with parameters of type ServerCredentials -
Uses of ServerCredentials in io.grpc.netty
Subclasses of ServerCredentials in io.grpc.nettyModifier and TypeClassDescription(package private) final classA credential with full control over the security handshake.Methods in io.grpc.netty that return ServerCredentialsModifier and TypeMethodDescriptionstatic ServerCredentialsInternalNettyServerCredentials.create(InternalProtocolNegotiator.ProtocolNegotiator negotiator) Creates aServerCredentialsthat will use the providednegotiator.static ServerCredentialsInternalNettyServerCredentials.create(InternalProtocolNegotiator.ServerFactory negotiator) Creates aServerCredentialsthat will use the providednegotiator.static ServerCredentialsNettyServerCredentials.create(ProtocolNegotiator.ServerFactory negotiator) static ServerCredentialsNettySslContextServerCredentials.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 NettyServerBuilderNettyServerBuilder.forAddress(SocketAddress address, ServerCredentials creds) Creates a server builder configured with the givenSocketAddress.static NettyServerBuilderNettyServerBuilder.forPort(int port, ServerCredentials creds) Creates a server builder that will bind to the given port.ProtocolNegotiators.from(ServerCredentials creds) protected ServerProvider.NewServerBuilderResultNettyServerProvider.newServerBuilderForPort(int port, ServerCredentials creds) InternalNettyServerCredentials.toNegotiator(ServerCredentials serverCredentials) Converts aServerCredentialsto a negotiator, in similar fashion as for a new server.