Package io.grpc

Class ChoiceChannelCredentials

    • Method Detail

      • create

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

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

        public ChannelCredentials withoutBearerTokens()
        Description copied from class: ChannelCredentials
        Returns the ChannelCredentials stripped of its CallCredentials. In the future, this may strip only some of the CallCredentials, preserving call credentials that are safe from replay attacks (e.g., if the token is bound to the channel's certificate).
        Specified by:
        withoutBearerTokens in class ChannelCredentials