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.-
Field Summary
Fields -
Constructor Summary
Constructors -
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.
-
Field Details
-
creds
-
-
Constructor Details
-
ChoiceServerCredentials
-
-
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.
-