PasskeyData.kt

1.1 KB · raw

1package com.peachpasswords.vault23import android.os.Parcelable4import kotlinx.parcelize.Parcelize5import kotlinx.serialization.Serializable67@Parcelize8@Serializable9data class PasskeyData(10    val credentialId: String,11    val publicKeyCose: String,12    @Serializable(with = JwkStringSerializer::class)13    val privateKeyJwk: String? = null,14    val rpId: String,15    val rpName: String? = null,16    val userHandle: String,17    val userName: String,18    val userDisplayName: String? = null,19    val algorithm: Int = -7,20    val signCount: Int = 0,21    val aaguid: String? = null,22    val backupEligible: Boolean = false,23    val backupState: Boolean = false,24    val transports: List<String>? = null,25    val createdAt: Long = System.currentTimeMillis(),26    /**27     * F1: the verified caller origin this credential was registered from28     * (a browser web origin or android:apk-key-hash:<cert hash>). Null for29     * credentials created before caller binding existed or synced from the30     * browser — those keep the legacy rpId-domain gate on get.31     */32    val callerOrigin: String? = null,33) : Parcelable