what-the-bank/sources/o/gpO.java

90 lines
3.0 KiB
Java

package o;
import java.io.IOException;
/* loaded from: classes6.dex */
public final class gpO extends AbstractC15346gnv implements InterfaceC15341gnq {
public InterfaceC15342gnr d;
public int e;
public gpO(C15417gpt c15417gpt) {
this.d = c15417gpt;
this.e = 4;
}
public gpO(int i, InterfaceC15342gnr interfaceC15342gnr) {
this.d = interfaceC15342gnr;
this.e = i;
}
public gpO(String str) {
this.e = 1;
this.d = new C15376gop(str);
}
public static gpO a(Object obj) {
if (obj == null || (obj instanceof gpO)) {
return (gpO) obj;
}
if (obj instanceof AbstractC15321gnP) {
AbstractC15321gnP abstractC15321gnP = (AbstractC15321gnP) obj;
int i = abstractC15321gnP.e;
switch (i) {
case 0:
return new gpO(i, AbstractC15317gnH.b(abstractC15321gnP, false));
case 1:
return new gpO(i, C15376gop.d(abstractC15321gnP));
case 2:
return new gpO(i, C15376gop.d(abstractC15321gnP));
case 3:
throw new IllegalArgumentException("unknown tag: ".concat(String.valueOf(i)));
case 4:
return new gpO(i, C15417gpt.d(abstractC15321gnP));
case 5:
return new gpO(i, AbstractC15317gnH.b(abstractC15321gnP, false));
case 6:
return new gpO(i, C15376gop.d(abstractC15321gnP));
case 7:
return new gpO(i, gnD.b(abstractC15321gnP));
case 8:
return new gpO(i, C15314gnC.d(abstractC15321gnP));
}
}
if (obj instanceof byte[]) {
try {
return a(AbstractC15315gnE.b((byte[]) obj));
} catch (IOException unused) {
throw new IllegalArgumentException("unable to parse encoded general name");
}
}
StringBuilder sb = new StringBuilder("unknown object in getInstance: ");
sb.append(obj.getClass().getName());
throw new IllegalArgumentException(sb.toString());
}
public final String toString() {
StringBuffer stringBuffer = new StringBuffer();
stringBuffer.append(this.e);
stringBuffer.append(": ");
int i = this.e;
if (i != 1 && i != 2) {
if (i == 4) {
stringBuffer.append(C15417gpt.c(this.d).toString());
} else if (i != 6) {
stringBuffer.append(this.d.toString());
}
return stringBuffer.toString();
}
stringBuffer.append(C15376gop.b(this.d).j());
return stringBuffer.toString();
}
@Override // o.AbstractC15346gnv, o.InterfaceC15342gnr
public final AbstractC15315gnE i() {
if (this.e == 4) {
return new C15355goI(true, this.e, this.d);
}
return new C15355goI(false, this.e, this.d);
}
}