what-the-bank/sources/io/grpc/CompositeChannelCredentials...

32 lines
1.2 KiB
Java

package io.grpc;
import com.google.common.base.Preconditions;
/* loaded from: classes6.dex */
public final class CompositeChannelCredentials extends ChannelCredentials {
private final CallCredentials callCredentials;
private final ChannelCredentials channelCredentials;
public static ChannelCredentials create(ChannelCredentials channelCredentials, CallCredentials callCredentials) {
return new CompositeChannelCredentials(channelCredentials, callCredentials);
}
private CompositeChannelCredentials(ChannelCredentials channelCredentials, CallCredentials callCredentials) {
this.channelCredentials = (ChannelCredentials) Preconditions.checkNotNull(channelCredentials, "channelCreds");
this.callCredentials = (CallCredentials) Preconditions.checkNotNull(callCredentials, "callCreds");
}
@Override // io.grpc.ChannelCredentials
public final ChannelCredentials withoutBearerTokens() {
return this.channelCredentials.withoutBearerTokens();
}
public final ChannelCredentials getChannelCredentials() {
return this.channelCredentials;
}
public final CallCredentials getCallCredentials() {
return this.callCredentials;
}
}