package com.google.android.gms.common; import android.os.RemoteException; import android.util.Log; 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 org.bouncycastle.i18n.LocalizedMessage; /* JADX INFO: Access modifiers changed from: package-private */ /* loaded from: classes.dex */ public abstract class zzj extends com.google.android.gms.common.internal.zzy { private final int zza; /* JADX INFO: Access modifiers changed from: protected */ public zzj(byte[] bArr) { Preconditions.checkArgument(bArr.length == 25); this.zza = Arrays.hashCode(bArr); } /* JADX INFO: Access modifiers changed from: protected */ public static byte[] zze(String str) { try { return str.getBytes(LocalizedMessage.DEFAULT_ENCODING); } catch (UnsupportedEncodingException e) { throw new AssertionError(e); } } public final boolean equals(Object obj) { IObjectWrapper zzd; if (obj != null && (obj instanceof com.google.android.gms.common.internal.zzz)) { try { com.google.android.gms.common.internal.zzz zzzVar = (com.google.android.gms.common.internal.zzz) obj; if (zzzVar.zzc() == this.zza && (zzd = zzzVar.zzd()) != null) { return Arrays.equals(zzf(), (byte[]) ObjectWrapper.unwrap(zzd)); } return false; } catch (RemoteException e) { Log.e("GoogleCertificates", "Failed to get Google certificates from remote", e); } } return false; } @Override // com.google.android.gms.common.internal.zzz public final IObjectWrapper zzd() { return ObjectWrapper.wrap(zzf()); } /* JADX INFO: Access modifiers changed from: package-private */ public abstract byte[] zzf(); @Override // com.google.android.gms.common.internal.zzz public final int zzc() { return this.zza; } public final int hashCode() { return this.zza; } }