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

32 lines
1.2 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
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;
}
}