- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
55 lines
2.1 KiB
Java
55 lines
2.1 KiB
Java
package androidx.credentials;
|
|
|
|
import android.os.Bundle;
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
/* loaded from: classes.dex */
|
|
public final class ClearCredentialStateRequest {
|
|
private static final String BUNDLE_KEY_CLEAR_RESTORE_CREDENTIAL_REQUEST = "androidx.credentials.BUNDLE_KEY_CLEAR_RESTORE_CREDENTIAL_REQUEST";
|
|
public static final Companion Companion = new Companion(null);
|
|
public static final String TYPE_CLEAR_CREDENTIAL_STATE = "androidx.credentials.TYPE_CLEAR_CREDENTIAL_STATE";
|
|
public static final String TYPE_CLEAR_RESTORE_CREDENTIAL = "androidx.credentials.TYPE_CLEAR_RESTORE_CREDENTIAL";
|
|
private final Bundle requestBundle;
|
|
private final String requestType;
|
|
|
|
/* JADX WARN: Multi-variable type inference failed */
|
|
public ClearCredentialStateRequest() {
|
|
this(null, 1, 0 == true ? 1 : 0);
|
|
}
|
|
|
|
public final Bundle getRequestBundle() {
|
|
return this.requestBundle;
|
|
}
|
|
|
|
public final String getRequestType() {
|
|
return this.requestType;
|
|
}
|
|
|
|
public ClearCredentialStateRequest(String requestType) {
|
|
Intrinsics.checkNotNullParameter(requestType, "requestType");
|
|
this.requestType = requestType;
|
|
Bundle bundle = new Bundle();
|
|
this.requestBundle = bundle;
|
|
if (!Intrinsics.areEqual(requestType, TYPE_CLEAR_CREDENTIAL_STATE) && !Intrinsics.areEqual(requestType, TYPE_CLEAR_RESTORE_CREDENTIAL)) {
|
|
throw new IllegalArgumentException("The request type " + requestType + " is not supported.");
|
|
}
|
|
if (Intrinsics.areEqual(requestType, TYPE_CLEAR_RESTORE_CREDENTIAL)) {
|
|
bundle.putBoolean(BUNDLE_KEY_CLEAR_RESTORE_CREDENTIAL_REQUEST, true);
|
|
}
|
|
}
|
|
|
|
public /* synthetic */ ClearCredentialStateRequest(String str, int i, DefaultConstructorMarker defaultConstructorMarker) {
|
|
this((i & 1) != 0 ? TYPE_CLEAR_CREDENTIAL_STATE : str);
|
|
}
|
|
|
|
public static final class Companion {
|
|
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
|
this();
|
|
}
|
|
|
|
private Companion() {
|
|
}
|
|
}
|
|
}
|