mirror of
https://github.com/VibedByKaKi/alexandroid.git
synced 2026-11-15 18:37:17 +01:00
64 lines
2.1 KiB
Java
64 lines
2.1 KiB
Java
package com.google.android.gms.common;
|
|
|
|
import android.os.RemoteException;
|
|
import android.util.Log;
|
|
import androidx.annotation.Nullable;
|
|
import com.google.android.gms.common.internal.Preconditions;
|
|
import com.google.android.gms.dynamic.IObjectWrapper;
|
|
import com.google.android.gms.dynamic.ObjectWrapper;
|
|
import java.io.UnsupportedEncodingException;
|
|
import java.util.Arrays;
|
|
import okio.Buffer$$ExternalSyntheticBUOutline0;
|
|
|
|
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
|
|
/* loaded from: classes7.dex */
|
|
abstract class zzj extends com.google.android.gms.common.internal.zzw {
|
|
private final int zza;
|
|
|
|
public zzj(byte[] bArr) {
|
|
Preconditions.checkArgument(bArr.length == 25);
|
|
this.zza = Arrays.hashCode(bArr);
|
|
}
|
|
|
|
public static byte[] zzf(String str) {
|
|
try {
|
|
return str.getBytes("ISO-8859-1");
|
|
} catch (UnsupportedEncodingException e) {
|
|
Buffer$$ExternalSyntheticBUOutline0.m((Object) e);
|
|
return null;
|
|
}
|
|
}
|
|
|
|
public final boolean equals(@Nullable Object obj) {
|
|
IObjectWrapper zzd;
|
|
if (!(obj instanceof com.google.android.gms.common.internal.zzx)) {
|
|
return false;
|
|
}
|
|
try {
|
|
com.google.android.gms.common.internal.zzx zzxVar = (com.google.android.gms.common.internal.zzx) obj;
|
|
if (zzxVar.zze() == this.zza && (zzd = zzxVar.zzd()) != null) {
|
|
return Arrays.equals(zzc(), (byte[]) ObjectWrapper.unwrap(zzd));
|
|
}
|
|
return false;
|
|
} catch (RemoteException e) {
|
|
Log.e("GoogleCertificates", "Failed to get Google certificates from remote", e);
|
|
return false;
|
|
}
|
|
}
|
|
|
|
public final int hashCode() {
|
|
return this.zza;
|
|
}
|
|
|
|
public abstract byte[] zzc();
|
|
|
|
@Override // com.google.android.gms.common.internal.zzx
|
|
public final IObjectWrapper zzd() {
|
|
return ObjectWrapper.wrap(zzc());
|
|
}
|
|
|
|
@Override // com.google.android.gms.common.internal.zzx
|
|
public final int zze() {
|
|
return this.zza;
|
|
}
|
|
}
|