what-the-bank/sources/io/grpc/okhttp/SslSocketFactoryChannelCred...

33 lines
1019 B
Java

package io.grpc.okhttp;
import com.google.common.base.Preconditions;
import javax.net.ssl.SSLSocketFactory;
/* loaded from: classes6.dex */
public final class SslSocketFactoryChannelCredentials {
private SslSocketFactoryChannelCredentials() {
}
public static io.grpc.ChannelCredentials create(SSLSocketFactory sSLSocketFactory) {
return new ChannelCredentials(sSLSocketFactory);
}
/* loaded from: classes6.dex */
static final class ChannelCredentials extends io.grpc.ChannelCredentials {
private final SSLSocketFactory factory;
@Override // io.grpc.ChannelCredentials
public final io.grpc.ChannelCredentials withoutBearerTokens() {
return this;
}
private ChannelCredentials(SSLSocketFactory sSLSocketFactory) {
this.factory = (SSLSocketFactory) Preconditions.checkNotNull(sSLSocketFactory, "factory");
}
public final SSLSocketFactory getFactory() {
return this.factory;
}
}
}