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

33 lines
1019 B
Java
Raw Normal View History

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