Package io.grpc

Class ChoiceServerCredentials

  • public final class ChoiceServerCredentials
    extends ServerCredentials
    Provides a list of ServerCredentials, where any one may be used. The credentials are in preference order.
    • Method Detail

      • create

        public static ServerCredentials create​(ServerCredentials... creds)
        Constructs with the provided creds as options, with preferred credentials first.
        java.lang.IllegalArgumentException - if no creds are provided
      • getCredentialsList

        public java.util.List<ServerCredentials> getCredentialsList()
        Non-empty list of credentials, in preference order.