Top Description Fields Constructors Methods
io.grpc

public final Class ChoiceServerCredentials

extends ServerCredentials
Class Inheritance
Imports
java.util.ArrayList, .Arrays, .Collections, .List

Provides a list of ServerCredentials, where any one may be used. The credentials are in preference order.

Field Summary

Modifier and TypeField and Description
private final List<ServerCredentials>

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static ServerCredentials
create(ServerCredentials... creds)

Constructs with the provided creds as options, with preferred credentials first.

public List<ServerCredentials>
getCredentialsList()

Non-empty list of credentials, in preference order.

Field Detail

credsback to summary
private final List<ServerCredentials> creds

Constructor Detail

ChoiceServerCredentialsback to summary
private ChoiceServerCredentials(ServerCredentials... creds)

Method Detail

createback to summary
public static ServerCredentials create(ServerCredentials... creds)

Constructs with the provided creds as options, with preferred credentials first.

Exceptions
IllegalArgumentException:
if no creds are provided
getCredentialsListback to summary
public List<ServerCredentials> getCredentialsList()

Non-empty list of credentials, in preference order.