package com.google.android.play.core.integrity;

import C3.A;
import android.os.Bundle;
import com.google.android.gms.common.api.ApiException;
import com.google.android.gms.tasks.TaskCompletionSource;

/* JADX INFO: loaded from: classes3.dex */
final class bk extends bi {

    /* JADX INFO: renamed from: c, reason: collision with root package name */
    final /* synthetic */ bn f13658c;

    /* JADX INFO: renamed from: d, reason: collision with root package name */
    private final A f13659d;

    /* JADX INFO: renamed from: e, reason: collision with root package name */
    private final long f13660e;

    /* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
    public bk(bn bnVar, TaskCompletionSource taskCompletionSource, long j4) {
        super(bnVar, taskCompletionSource);
        this.f13658c = bnVar;
        this.f13659d = new A("OnRequestIntegrityTokenCallback");
        this.f13660e = j4;
    }

    @Override // com.google.android.play.core.integrity.bi, C3.s
    public final void c(Bundle bundle) {
        super.c(bundle);
        this.f13659d.b("onRequestExpressIntegrityToken", new Object[0]);
        ApiException apiExceptionA = this.f13658c.f13669f.a(bundle);
        if (apiExceptionA != null) {
            this.f13655a.trySetException(apiExceptionA);
            return;
        }
        bj bjVar = new bj(this, this.f13658c.f13666c, bundle.getLong("request.token.sid"));
        TaskCompletionSource taskCompletionSource = this.f13655a;
        b bVar = new b();
        bVar.b(bundle.getString("token"));
        bVar.a(bjVar);
        taskCompletionSource.trySetResult(bVar.c());
    }
}
