- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
43 lines
1.5 KiB
Java
43 lines
1.5 KiB
Java
package androidx.credentials.webauthn;
|
|
|
|
import android.os.Build;
|
|
import android.util.Base64;
|
|
import androidx.annotation.RestrictTo;
|
|
import androidx.credentials.provider.CallingAppInfo;
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
@RestrictTo({RestrictTo.Scope.LIBRARY})
|
|
/* loaded from: classes.dex */
|
|
public final class WebAuthnUtils {
|
|
public static final Companion Companion = new Companion(null);
|
|
|
|
public static final class Companion {
|
|
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
|
this();
|
|
}
|
|
|
|
private Companion() {
|
|
}
|
|
|
|
public final byte[] b64Decode(String str) {
|
|
Intrinsics.checkNotNullParameter(str, "str");
|
|
byte[] decode = Base64.decode(str, 11);
|
|
Intrinsics.checkNotNullExpressionValue(decode, "decode(str, Base64.NO_PA…_WRAP or Base64.URL_SAFE)");
|
|
return decode;
|
|
}
|
|
|
|
public final String b64Encode(byte[] data) {
|
|
Intrinsics.checkNotNullParameter(data, "data");
|
|
String encodeToString = Base64.encodeToString(data, 11);
|
|
Intrinsics.checkNotNullExpressionValue(encodeToString, "encodeToString(\n …64.URL_SAFE\n )");
|
|
return encodeToString;
|
|
}
|
|
|
|
public final String appInfoToOrigin(CallingAppInfo info) {
|
|
Intrinsics.checkNotNullParameter(info, "info");
|
|
return Build.VERSION.SDK_INT >= 28 ? WebAuthnUtilsApi28.Companion.appInfoToOrigin(info) : "";
|
|
}
|
|
}
|
|
}
|