@ExperimentalApi(value="https://github.com/grpc/grpc-java/issues/7479") public final class ChoiceChannelCredentials extends ChannelCredentials
ChannelCredentials
, where any one may be used. The credentials are in
preference order.Modifier and Type | Method and Description |
---|---|
static ChannelCredentials |
create(ChannelCredentials... creds)
Constructs with the provided
creds as options, with preferred credentials first. |
List<ChannelCredentials> |
getCredentialsList()
Non-empty list of credentials, in preference order.
|
ChannelCredentials |
withoutBearerTokens()
Returns the ChannelCredentials stripped of its CallCredentials.
|
public static ChannelCredentials create(ChannelCredentials... creds)
creds
as options, with preferred credentials first.IllegalArgumentException
- if no creds are providedpublic List<ChannelCredentials> getCredentialsList()
public ChannelCredentials withoutBearerTokens()
ChannelCredentials
withoutBearerTokens
in class ChannelCredentials