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

94 lines
3.5 KiB
Java

package o;
import java.io.Serializable;
/* renamed from: o.glz, reason: case insensitive filesystem */
/* loaded from: classes6.dex */
public final class C15271glz implements InterfaceC15241glC, Serializable {
private final byte[] b;
public C15271glz() {
this.b = new byte[5];
}
public C15271glz(byte[] bArr) {
if (bArr.length != 5) {
StringBuilder sb = new StringBuilder("byte array length must be 5, was ");
sb.append(bArr.length);
throw new IllegalArgumentException(sb.toString());
}
byte[] bArr2 = (byte[]) bArr.clone();
this.b = bArr2;
bArr2[0] = (byte) (bArr2[0] & (-193));
}
@Override // o.InterfaceC15241glC
public final byte[] b() {
return (byte[]) this.b.clone();
}
public final String toString() {
String str;
StringBuilder sb = new StringBuilder();
for (int i = 0; i <= 37; i++) {
if (i >= 0 && i <= 37) {
byte[] bArr = this.b;
if (((bArr[(bArr.length - 1) - (i >> 3)] >> (i & 7)) & 1) == 1) {
if (i >= 0 && i <= 37) {
if (i >= 33) {
StringBuilder sb2 = new StringBuilder("W-DG");
sb2.append(54 - i);
str = sb2.toString();
} else if (i > 28) {
str = "RFU-".concat(String.valueOf(i));
} else if (i >= 8) {
StringBuilder sb3 = new StringBuilder("R-DG");
sb3.append(i - 7);
str = sb3.toString();
} else {
switch (i) {
case 0:
str = "Age Verification";
break;
case 1:
str = "Community ID Verification";
break;
case 2:
str = "Restricted Identification";
break;
case 3:
str = "Privileged Terminal";
break;
case 4:
str = "CAN Allowed";
break;
case 5:
str = "PIN Management";
break;
case 6:
str = "Install Certificate";
break;
case 7:
str = "Install Qualified Certificate";
break;
default:
throw new IllegalStateException();
}
}
sb.append(str);
sb.append(", ");
} else {
throw new ArrayIndexOutOfBoundsException(i);
}
}
} else {
throw new ArrayIndexOutOfBoundsException(i);
}
}
if (sb.length() > 0) {
sb.delete(sb.length() - 2, sb.length());
}
return sb.toString();
}
}