what-the-bank/sources/com/facetec/sdk/FaceTecSessionResult.java

118 lines
3.5 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.facetec.sdk;
import android.os.Parcel;
import android.os.Parcelable;
import android.util.Base64;
/* loaded from: classes.dex */
public final class FaceTecSessionResult implements Parcelable {
public static final Parcelable.Creator<FaceTecSessionResult> CREATOR = new Parcelable.Creator<FaceTecSessionResult>() { // from class: com.facetec.sdk.FaceTecSessionResult.1
@Override // android.os.Parcelable.Creator
public /* bridge */ /* synthetic */ FaceTecSessionResult[] newArray(int i) {
return new FaceTecSessionResult[i];
}
@Override // android.os.Parcelable.Creator
public /* synthetic */ FaceTecSessionResult createFromParcel(Parcel parcel) {
return new FaceTecSessionResult(parcel);
}
};
private final byte[] a;
private final FaceTecSessionStatus b;
private final byte[][] c;
private String d;
private final byte[][] e;
@Override // android.os.Parcelable
public final int describeContents() {
return 0;
}
@Override // android.os.Parcelable
public final void writeToParcel(Parcel parcel, int i) {
parcel.writeString(this.b.name());
parcel.writeString(this.d);
cb.a(this.c, parcel);
cb.a(this.e, parcel);
cb.a(this.a, parcel);
}
protected FaceTecSessionResult(Parcel parcel) {
this.b = FaceTecSessionStatus.valueOf(parcel.readString());
this.d = parcel.readString();
this.c = (byte[][]) cb.c(parcel);
this.e = (byte[][]) cb.c(parcel);
this.a = (byte[]) cb.c(parcel);
}
/* JADX INFO: Access modifiers changed from: package-private */
public FaceTecSessionResult(FaceTecSessionStatus faceTecSessionStatus, byte[][] bArr, byte[][] bArr2, byte[] bArr3) {
this.b = faceTecSessionStatus;
this.c = bArr;
this.e = bArr2;
this.a = bArr3;
}
public final String getFaceScanBase64() {
byte[] bArr = new byte[0];
byte[] bArr2 = this.a;
if (bArr2 != null) {
bArr = bArr2;
}
return Base64.encodeToString(bArr, 2);
}
public final String[] getLowQualityAuditTrailCompressedBase64() {
byte[][] bArr = this.e;
int i = 0;
if (bArr == null) {
return new String[0];
}
String[] strArr = new String[bArr.length];
while (true) {
byte[][] bArr2 = this.e;
if (i >= bArr2.length) {
return strArr;
}
strArr[i] = Base64.encodeToString(bArr2[i], 2);
i++;
}
}
public final String[] getAuditTrailCompressedBase64() {
byte[][] bArr = this.c;
int i = 0;
if (bArr == null) {
return new String[0];
}
String[] strArr = new String[bArr.length];
while (true) {
byte[][] bArr2 = this.c;
if (i >= bArr2.length) {
return strArr;
}
strArr[i] = Base64.encodeToString(bArr2[i], 2);
i++;
}
}
public final FaceTecSessionStatus getStatus() {
return this.b;
}
public final String getSessionId() {
return this.d;
}
public final byte[] getFaceScan() {
byte[] bArr = new byte[0];
byte[] bArr2 = this.a;
return bArr2 != null ? bArr2 : bArr;
}
/* JADX INFO: Access modifiers changed from: package-private */
public final void d(String str) {
this.d = str;
}
}