what-the-bank/sources/io/grpc/ChoiceServerCredentials.java

29 lines
959 B
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package io.grpc;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
/* loaded from: classes6.dex */
public final class ChoiceServerCredentials extends ServerCredentials {
private final List<ServerCredentials> creds;
public static ServerCredentials create(ServerCredentials... serverCredentialsArr) {
if (serverCredentialsArr.length == 0) {
throw new IllegalArgumentException("At least one credential is required");
}
return new ChoiceServerCredentials(serverCredentialsArr);
}
private ChoiceServerCredentials(ServerCredentials... serverCredentialsArr) {
for (ServerCredentials serverCredentials : serverCredentialsArr) {
}
this.creds = Collections.unmodifiableList(new ArrayList(Arrays.asList(serverCredentialsArr)));
}
public final List<ServerCredentials> getCredentialsList() {
return this.creds;
}
}