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 ServerCredentialscreate(ServerCredentials... creds) Constructs with the providedcredsas options, with preferred credentials first.Non-empty list of credentials, in preference order.
-
Method Details
-
create
Constructs with the providedcredsas options, with preferred credentials first.- Throws:
IllegalArgumentException- if no creds are provided
-
getCredentialsList
Non-empty list of credentials, in preference order.
-