hp$a.java 2.54 KB
import android.os.RemoteException;
import android.util.Log;
import com.google.android.gms.common.internal.zzac;
import com.google.android.gms.common.internal.zzt;
import com.google.android.gms.common.internal.zzt.zza;
import com.google.android.gms.common.util.zzn;
import com.google.android.gms.dynamic.IObjectWrapper;
import com.google.android.gms.dynamic.zzd;
import java.io.UnsupportedEncodingException;
import java.util.Arrays;

public abstract class hp$a
  extends zzt.zza
{
  private int a;
  
  protected hp$a(byte[] paramArrayOfByte)
  {
    Object localObject = paramArrayOfByte;
    if (paramArrayOfByte.length != 25)
    {
      int i = paramArrayOfByte.length;
      localObject = String.valueOf(zzn.zza(paramArrayOfByte, 0, paramArrayOfByte.length, false));
      Log.wtf("GoogleCertificates", String.valueOf(localObject).length() + 51 + "Cert hash data has incorrect length (" + i + "):\n" + (String)localObject, new Exception());
      localObject = Arrays.copyOfRange(paramArrayOfByte, 0, 25);
      if (localObject.length == 25) {
        bool = true;
      }
      i = localObject.length;
      zzac.zzb(bool, 55 + "cert hash data has incorrect length. length=" + i);
    }
    this.a = Arrays.hashCode((byte[])localObject);
  }
  
  protected static byte[] a(String paramString)
  {
    try
    {
      paramString = paramString.getBytes("ISO-8859-1");
      return paramString;
    }
    catch (UnsupportedEncodingException paramString)
    {
      throw new AssertionError(paramString);
    }
  }
  
  abstract byte[] a();
  
  public boolean equals(Object paramObject)
  {
    if ((paramObject == null) || (!(paramObject instanceof zzt))) {
      return false;
    }
    try
    {
      paramObject = (zzt)paramObject;
      if (((zzt)paramObject).zzvb() != hashCode()) {
        return false;
      }
      paramObject = ((zzt)paramObject).zzva();
      if (paramObject == null) {
        return false;
      }
      paramObject = (byte[])zzd.zzF((IObjectWrapper)paramObject);
      boolean bool = Arrays.equals(a(), (byte[])paramObject);
      return bool;
    }
    catch (RemoteException paramObject)
    {
      Log.e("GoogleCertificates", "Failed to get Google certificates from remote", (Throwable)paramObject);
    }
    return false;
  }
  
  public int hashCode()
  {
    return this.a;
  }
  
  public IObjectWrapper zzva()
  {
    return zzd.zzA(a());
  }
  
  public int zzvb()
  {
    return hashCode();
  }
}


/* Location:              /home/merong/decompile/hackery-dex2jar.jar!/hp$a.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       0.7.1
 */