Uses of Class
io.grpc.ServerCredentials
-
-
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.
-