Package io.grpc
Class ChoiceServerCredentials
java.lang.Object
io.grpc.ServerCredentials
io.grpc.ChoiceServerCredentials
Provides a list of
ServerCredentials
, where any one may be used. The credentials are in
preference order.-
Method Summary
Modifier and TypeMethodDescriptionstatic ServerCredentials
create
(ServerCredentials... creds) Constructs with the providedcreds
as options, with preferred credentials first.Non-empty list of credentials, in preference order.
-
Method Details
-
create
Constructs with the providedcreds
as options, with preferred credentials first.- Throws:
IllegalArgumentException
- if no creds are provided
-
getCredentialsList
Non-empty list of credentials, in preference order.
-