what-the-bank/sources/com/google/android/gms/auth/api/credentials/IdToken.java

52 lines
1.9 KiB
Java

package com.google.android.gms.auth.api.credentials;
import android.os.Parcel;
import android.os.Parcelable;
import android.text.TextUtils;
import com.google.android.gms.common.internal.Objects;
import com.google.android.gms.common.internal.Preconditions;
import com.google.android.gms.common.internal.ReflectedParcelable;
import com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable;
import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter;
/* loaded from: classes.dex */
public final class IdToken extends AbstractSafeParcelable implements ReflectedParcelable {
public static final Parcelable.Creator<IdToken> CREATOR = new zzk();
private final String zzal;
private final String zzr;
public IdToken(String str, String str2) {
Preconditions.checkArgument(!TextUtils.isEmpty(str), "account type string cannot be null or empty");
Preconditions.checkArgument(!TextUtils.isEmpty(str2), "id token string cannot be null or empty");
this.zzr = str;
this.zzal = str2;
}
@Override // android.os.Parcelable
public final void writeToParcel(Parcel parcel, int i) {
int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel);
SafeParcelWriter.writeString(parcel, 1, getAccountType(), false);
SafeParcelWriter.writeString(parcel, 2, getIdToken(), false);
SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader);
}
public final boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof IdToken)) {
return false;
}
IdToken idToken = (IdToken) obj;
return Objects.equal(this.zzr, idToken.zzr) && Objects.equal(this.zzal, idToken.zzal);
}
public final String getIdToken() {
return this.zzal;
}
public final String getAccountType() {
return this.zzr;
}
}