alexandroid/decompiled/jadx/sources/androidx/credentials/webauthn/PublicKeyCredentialRequestOptions.java
KaKi87 a47fad5135 📦 Add decompiled Alexa 2.2.730155.0 (jadx, apktool, Hermes strings)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-07 00:04:16 +01:00

69 lines
3 KiB
Java

package androidx.credentials.webauthn;
import androidx.annotation.RestrictTo;
import androidx.credentials.webauthn.WebAuthnUtils;
import com.google.android.gms.fido.u2f.api.common.ClientData;
import kotlin.Metadata;
import org.jetbrains.annotations.NotNull;
import org.json.JSONObject;
/* compiled from: r8-map-id-b9432e0f623b4a4bff4ba50a8a24c4aafad2c1e11092747b9fb5e6a22af5a940 */
@Metadata(d1 = {"\u0000*\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0010\u0012\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0006\n\u0002\u0010\t\n\u0002\b\u0005\b\u0007\u0018\u00002\u00020\u0001B\r\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004R\u0011\u0010\u0005\u001a\u00020\u0006¢\u0006\b\n\u0000\u001a\u0004\b\u0007\u0010\bR\u0011\u0010\t\u001a\u00020\n¢\u0006\b\n\u0000\u001a\u0004\b\u000b\u0010\fR\u0011\u0010\r\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u000e\u0010\u000fR\u0011\u0010\u0010\u001a\u00020\u0011¢\u0006\b\n\u0000\u001a\u0004\b\u0012\u0010\u0013R\u0011\u0010\u0014\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0015\u0010\u000f¨\u0006\u0016"}, d2 = {"Landroidx/credentials/webauthn/PublicKeyCredentialRequestOptions;", "", "requestJson", "", "(Ljava/lang/String;)V", ClientData.KEY_CHALLENGE, "", "getChallenge", "()[B", "json", "Lorg/json/JSONObject;", "getJson", "()Lorg/json/JSONObject;", "rpId", "getRpId", "()Ljava/lang/String;", "timeout", "", "getTimeout", "()J", "userVerification", "getUserVerification", "credentials_release"}, k = 1, mv = {1, 8, 0}, xi = 48)
@RestrictTo({RestrictTo.Scope.LIBRARY})
/* loaded from: classes13.dex */
public final class PublicKeyCredentialRequestOptions {
@NotNull
private final byte[] challenge;
@NotNull
private final JSONObject json;
@NotNull
private final String rpId;
private final long timeout;
@NotNull
private final String userVerification;
public PublicKeyCredentialRequestOptions(@NotNull String str) {
str.getClass();
JSONObject jSONObject = new JSONObject(str);
this.json = jSONObject;
String string = jSONObject.getString(ClientData.KEY_CHALLENGE);
WebAuthnUtils.Companion companion = WebAuthnUtils.INSTANCE;
string.getClass();
this.challenge = companion.b64Decode(string);
this.timeout = jSONObject.optLong("timeout", 0L);
String optString = jSONObject.optString("rpId", "");
optString.getClass();
this.rpId = optString;
String optString2 = jSONObject.optString("userVerification", "preferred");
optString2.getClass();
this.userVerification = optString2;
}
@NotNull
public final byte[] getChallenge() {
return this.challenge;
}
@NotNull
public final JSONObject getJson() {
return this.json;
}
@NotNull
public final String getRpId() {
return this.rpId;
}
public final long getTimeout() {
return this.timeout;
}
@NotNull
public final String getUserVerification() {
return this.userVerification;
}
}