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. -
-
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.Fields in io.grpc with type parameters of type ServerCredentials Modifier and Type Field Description private java.util.List<ServerCredentials>
ChoiceServerCredentials. creds
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(java.io.File certChain, java.io.File privateKey)
Creates an instance using provided certificate chain and private key.static ServerCredentials
TlsServerCredentials. create(java.io.InputStream certChain, java.io.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 java.util.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.static ServerProvider.NewServerBuilderResult
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.(package private) ServerBuilder<?>
ServerRegistry. newServerBuilderForPort(int port, ServerCredentials creds)
Constructors in io.grpc with parameters of type ServerCredentials Constructor Description ChoiceServerCredentials(ServerCredentials... creds)
-
Uses of ServerCredentials in io.grpc.netty
Subclasses of ServerCredentials in io.grpc.netty Modifier and Type Class Description (package private) class
NettyServerCredentials
A credential with full control over the security handshake.Methods in io.grpc.netty that return ServerCredentials Modifier and Type Method Description static 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
NettyServerCredentials. create(ProtocolNegotiator.ServerFactory negotiator)
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 ServerCredentials Modifier and Type Method Description static NettyServerBuilder
NettyServerBuilder. forAddress(java.net.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.static ProtocolNegotiators.FromServerCredentialsResult
ProtocolNegotiators. from(ServerCredentials creds)
protected ServerProvider.NewServerBuilderResult
NettyServerProvider. newServerBuilderForPort(int port, ServerCredentials creds)
static InternalProtocolNegotiator.ServerFactory
InternalNettyServerCredentials. toNegotiator(ServerCredentials serverCredentials)
Converts aServerCredentials
to a negotiator, in similar fashion as for a new server.
-