package com.google.android.gms.auth.api.credentials; import android.net.Uri; 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.ReflectedParcelable; import com.google.android.gms.common.internal.safeparcel.AbstractSafeParcelable; import com.google.android.gms.common.internal.safeparcel.SafeParcelWriter; import java.util.List; /* loaded from: classes.dex */ public class Credential extends AbstractSafeParcelable implements ReflectedParcelable { public static final Parcelable.Creator CREATOR = new zzc(); public static final String EXTRA_KEY = "com.google.android.gms.credentials.Credential"; private final String mId; private final String mName; private final Uri zzo; private final List zzp; private final String zzq; private final String zzr; private final String zzs; private final String zzt; /* JADX INFO: Access modifiers changed from: package-private */ /* JADX WARN: Code restructure failed: missing block: B:22:0x0067, code lost: if ("https".equalsIgnoreCase(r0.getScheme()) != false) goto L27; */ /* Code decompiled incorrectly, please refer to instructions dump. To view partially-correct add '--show-bad-code' argument */ public Credential(java.lang.String r4, java.lang.String r5, android.net.Uri r6, java.util.List r7, java.lang.String r8, java.lang.String r9, java.lang.String r10, java.lang.String r11) { /* r3 = this; r3.() java.lang.String r0 = "credential identifier cannot be null" java.lang.Object r4 = com.google.android.gms.common.internal.Preconditions.checkNotNull(r4, r0) java.lang.String r4 = (java.lang.String) r4 java.lang.String r4 = r4.trim() java.lang.String r0 = "credential identifier cannot be empty" com.google.android.gms.common.internal.Preconditions.checkNotEmpty(r4, r0) if (r8 == 0) goto L25 boolean r0 = android.text.TextUtils.isEmpty(r8) if (r0 != 0) goto L1d goto L25 L1d: java.lang.IllegalArgumentException r4 = new java.lang.IllegalArgumentException java.lang.String r5 = "Password must not be empty if set" r4.(r5) throw r4 L25: if (r9 == 0) goto L72 boolean r0 = android.text.TextUtils.isEmpty(r9) if (r0 != 0) goto L6a android.net.Uri r0 = android.net.Uri.parse(r9) boolean r1 = r0.isAbsolute() if (r1 == 0) goto L6a boolean r1 = r0.isHierarchical() if (r1 == 0) goto L6a java.lang.String r1 = r0.getScheme() boolean r1 = android.text.TextUtils.isEmpty(r1) if (r1 != 0) goto L6a java.lang.String r1 = r0.getAuthority() boolean r1 = android.text.TextUtils.isEmpty(r1) if (r1 != 0) goto L6a java.lang.String r1 = "http" java.lang.String r2 = r0.getScheme() boolean r1 = r1.equalsIgnoreCase(r2) if (r1 != 0) goto L72 java.lang.String r1 = "https" java.lang.String r0 = r0.getScheme() boolean r0 = r1.equalsIgnoreCase(r0) if (r0 == 0) goto L6a goto L72 L6a: java.lang.IllegalArgumentException r4 = new java.lang.IllegalArgumentException java.lang.String r5 = "Account type must be a valid Http/Https URI" r4.(r5) throw r4 L72: boolean r0 = android.text.TextUtils.isEmpty(r9) if (r0 != 0) goto L87 boolean r0 = android.text.TextUtils.isEmpty(r8) if (r0 == 0) goto L7f goto L87 L7f: java.lang.IllegalArgumentException r4 = new java.lang.IllegalArgumentException java.lang.String r5 = "Password and AccountType are mutually exclusive" r4.(r5) throw r4 L87: if (r5 == 0) goto L94 java.lang.String r0 = r5.trim() boolean r0 = android.text.TextUtils.isEmpty(r0) if (r0 == 0) goto L94 r5 = 0 L94: r3.mName = r5 r3.zzo = r6 if (r7 != 0) goto L9f java.util.List r5 = java.util.Collections.emptyList() goto La3 L9f: java.util.List r5 = java.util.Collections.unmodifiableList(r7) La3: r3.zzp = r5 r3.mId = r4 r3.zzq = r8 r3.zzr = r9 r3.zzs = r10 r3.zzt = r11 return */ throw new UnsupportedOperationException("Method not decompiled: com.google.android.gms.auth.api.credentials.Credential.(java.lang.String, java.lang.String, android.net.Uri, java.util.List, java.lang.String, java.lang.String, java.lang.String, java.lang.String):void"); } /* loaded from: classes.dex */ public static class Builder { private final String mId; private String mName; private Uri zzo; private List zzp; private String zzq; private String zzr; private String zzs; private String zzt; public Builder(String str) { this.mId = str; } public Builder(Credential credential) { this.mId = credential.mId; this.mName = credential.mName; this.zzo = credential.zzo; this.zzp = credential.zzp; this.zzq = credential.zzq; this.zzr = credential.zzr; this.zzs = credential.zzs; this.zzt = credential.zzt; } public Credential build() { return new Credential(this.mId, this.mName, this.zzo, this.zzp, this.zzq, this.zzr, this.zzs, this.zzt); } public Builder setProfilePictureUri(Uri uri) { this.zzo = uri; return this; } public Builder setPassword(String str) { this.zzq = str; return this; } public Builder setName(String str) { this.mName = str; return this; } public Builder setAccountType(String str) { this.zzr = str; return this; } } @Override // android.os.Parcelable public void writeToParcel(Parcel parcel, int i) { int beginObjectHeader = SafeParcelWriter.beginObjectHeader(parcel); SafeParcelWriter.writeString(parcel, 1, getId(), false); SafeParcelWriter.writeString(parcel, 2, getName(), false); SafeParcelWriter.writeParcelable(parcel, 3, getProfilePictureUri(), i, false); SafeParcelWriter.writeTypedList(parcel, 4, getIdTokens(), false); SafeParcelWriter.writeString(parcel, 5, getPassword(), false); SafeParcelWriter.writeString(parcel, 6, getAccountType(), false); SafeParcelWriter.writeString(parcel, 9, getGivenName(), false); SafeParcelWriter.writeString(parcel, 10, getFamilyName(), false); SafeParcelWriter.finishObjectHeader(parcel, beginObjectHeader); } public boolean equals(Object obj) { if (this == obj) { return true; } if (!(obj instanceof Credential)) { return false; } Credential credential = (Credential) obj; return TextUtils.equals(this.mId, credential.mId) && TextUtils.equals(this.mName, credential.mName) && Objects.equal(this.zzo, credential.zzo) && TextUtils.equals(this.zzq, credential.zzq) && TextUtils.equals(this.zzr, credential.zzr); } public int hashCode() { return Objects.hashCode(this.mId, this.mName, this.zzo, this.zzq, this.zzr); } public Uri getProfilePictureUri() { return this.zzo; } public String getPassword() { return this.zzq; } public String getName() { return this.mName; } public List getIdTokens() { return this.zzp; } public String getId() { return this.mId; } public String getGivenName() { return this.zzs; } public String getFamilyName() { return this.zzt; } public String getAccountType() { return this.zzr; } }