118 lines
3.4 KiB
Java
118 lines
3.4 KiB
Java
|
package com.facetec.sdk;
|
||
|
|
||
|
import com.facetec.sdk.kb;
|
||
|
import java.io.IOException;
|
||
|
import java.util.List;
|
||
|
|
||
|
/* loaded from: classes.dex */
|
||
|
public final class lf implements kb.c {
|
||
|
private final int a;
|
||
|
private final List<kb> b;
|
||
|
final lh c;
|
||
|
final kt d;
|
||
|
private final ky e;
|
||
|
private final ke f;
|
||
|
private final int g;
|
||
|
private final int h;
|
||
|
private final jo i;
|
||
|
private final jx j;
|
||
|
private int m;
|
||
|
|
||
|
/* renamed from: o, reason: collision with root package name */
|
||
|
private final int f6453o;
|
||
|
|
||
|
public lf(List<kb> list, ky kyVar, lh lhVar, kt ktVar, int i, ke keVar, jo joVar, jx jxVar, int i2, int i3, int i4) {
|
||
|
this.b = list;
|
||
|
this.d = ktVar;
|
||
|
this.e = kyVar;
|
||
|
this.c = lhVar;
|
||
|
this.a = i;
|
||
|
this.f = keVar;
|
||
|
this.i = joVar;
|
||
|
this.j = jxVar;
|
||
|
this.g = i2;
|
||
|
this.h = i3;
|
||
|
this.f6453o = i4;
|
||
|
}
|
||
|
|
||
|
@Override // com.facetec.sdk.kb.c
|
||
|
public final kh c(ke keVar) throws IOException {
|
||
|
return c(keVar, this.e, this.c, this.d);
|
||
|
}
|
||
|
|
||
|
public final kh c(ke keVar, ky kyVar, lh lhVar, kt ktVar) throws IOException {
|
||
|
if (this.a >= this.b.size()) {
|
||
|
throw new AssertionError();
|
||
|
}
|
||
|
this.m++;
|
||
|
if (this.c != null && !this.d.d(keVar.a())) {
|
||
|
StringBuilder sb = new StringBuilder("network interceptor ");
|
||
|
sb.append(this.b.get(this.a - 1));
|
||
|
sb.append(" must retain the same host and port");
|
||
|
throw new IllegalStateException(sb.toString());
|
||
|
}
|
||
|
if (this.c != null && this.m > 1) {
|
||
|
StringBuilder sb2 = new StringBuilder("network interceptor ");
|
||
|
sb2.append(this.b.get(this.a - 1));
|
||
|
sb2.append(" must call proceed() exactly once");
|
||
|
throw new IllegalStateException(sb2.toString());
|
||
|
}
|
||
|
lf lfVar = new lf(this.b, kyVar, lhVar, ktVar, this.a + 1, keVar, this.i, this.j, this.g, this.h, this.f6453o);
|
||
|
kb kbVar = this.b.get(this.a);
|
||
|
kh a = kbVar.a(lfVar);
|
||
|
if (lhVar != null) {
|
||
|
if (this.a + 1 < this.b.size() && lfVar.m != 1) {
|
||
|
StringBuilder sb3 = new StringBuilder("network interceptor ");
|
||
|
sb3.append(kbVar);
|
||
|
sb3.append(" must call proceed() exactly once");
|
||
|
throw new IllegalStateException(sb3.toString());
|
||
|
}
|
||
|
}
|
||
|
if (a == null) {
|
||
|
StringBuilder sb4 = new StringBuilder("interceptor ");
|
||
|
sb4.append(kbVar);
|
||
|
sb4.append(" returned null");
|
||
|
throw new NullPointerException(sb4.toString());
|
||
|
}
|
||
|
if (a.b() != null) {
|
||
|
return a;
|
||
|
}
|
||
|
StringBuilder sb5 = new StringBuilder("interceptor ");
|
||
|
sb5.append(kbVar);
|
||
|
sb5.append(" returned a response with no body");
|
||
|
throw new IllegalStateException(sb5.toString());
|
||
|
}
|
||
|
|
||
|
public final jo j() {
|
||
|
return this.i;
|
||
|
}
|
||
|
|
||
|
public final jx i() {
|
||
|
return this.j;
|
||
|
}
|
||
|
|
||
|
@Override // com.facetec.sdk.kb.c
|
||
|
public final int e() {
|
||
|
return this.f6453o;
|
||
|
}
|
||
|
|
||
|
public final ky d() {
|
||
|
return this.e;
|
||
|
}
|
||
|
|
||
|
@Override // com.facetec.sdk.kb.c
|
||
|
public final int c() {
|
||
|
return this.g;
|
||
|
}
|
||
|
|
||
|
@Override // com.facetec.sdk.kb.c
|
||
|
public final ke b() {
|
||
|
return this.f;
|
||
|
}
|
||
|
|
||
|
@Override // com.facetec.sdk.kb.c
|
||
|
public final int a() {
|
||
|
return this.h;
|
||
|
}
|
||
|
}
|