pl.wendigo.chrome.api.webauthn / Credential

Credential

data class Credential (source)

Link
WebAuthn#Credential type documentation.

Constructors

<init>

Credential(credentialId: String, isResidentCredential: Boolean, rpId: String? = null, privateKey: String, userHandle: String? = null, signCount: Int)

Properties

credentialId

val credentialId: String

isResidentCredential

val isResidentCredential: Boolean

privateKey

val privateKey: String

The ECDSA P-256 private key in PKCS#8 format.

rpId

val rpId: String?

Relying Party ID the credential is scoped to. Must be set when adding a credential.

signCount

val signCount: Int

Signature counter. This is incremented by one for each successful assertion. See https://w3c.github.io/webauthn/#signature-counter

userHandle

val userHandle: String?

An opaque byte sequence with a maximum size of 64 bytes mapping the credential to a specific user.