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

46 lines
2.1 KiB
Java
Raw Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.gms.auth.api.credentials;
import android.app.Activity;
import android.app.PendingIntent;
import android.content.Context;
import com.google.android.gms.auth.api.Auth;
import com.google.android.gms.common.api.GoogleApi;
import com.google.android.gms.common.api.internal.ApiExceptionMapper;
import com.google.android.gms.common.api.internal.StatusExceptionMapper;
import com.google.android.gms.common.internal.PendingResultUtil;
import com.google.android.gms.internal.p000authapi.zzr;
import com.google.android.gms.tasks.Task;
/* loaded from: classes.dex */
public class CredentialsClient extends GoogleApi<Auth.AuthCredentialsOptions> {
/* JADX INFO: Access modifiers changed from: package-private */
public CredentialsClient(Context context, Auth.AuthCredentialsOptions authCredentialsOptions) {
super(context, Auth.CREDENTIALS_API, authCredentialsOptions, new ApiExceptionMapper());
}
/* JADX INFO: Access modifiers changed from: package-private */
public CredentialsClient(Activity activity, Auth.AuthCredentialsOptions authCredentialsOptions) {
super(activity, Auth.CREDENTIALS_API, authCredentialsOptions, (StatusExceptionMapper) new ApiExceptionMapper());
}
public Task<CredentialRequestResponse> request(CredentialRequest credentialRequest) {
return PendingResultUtil.toResponseTask(Auth.CredentialsApi.request(asGoogleApiClient(), credentialRequest), new CredentialRequestResponse());
}
public PendingIntent getHintPickerIntent(HintRequest hintRequest) {
return zzr.zzc(getApplicationContext(), getApiOptions(), hintRequest, getApiOptions().getLogSessionId());
}
public Task<Void> save(Credential credential) {
return PendingResultUtil.toVoidTask(Auth.CredentialsApi.save(asGoogleApiClient(), credential));
}
public Task<Void> delete(Credential credential) {
return PendingResultUtil.toVoidTask(Auth.CredentialsApi.delete(asGoogleApiClient(), credential));
}
public Task<Void> disableAutoSignIn() {
return PendingResultUtil.toVoidTask(Auth.CredentialsApi.disableAutoSignIn(asGoogleApiClient()));
}
}