WebAuthnProtocolParser
object WebAuthnProtocolParser
Strict, serialization-library-neutral WebAuthn binary protocol parser.
Functions
Link copied to clipboard
fun extractAuthenticatorData(attestationObject: ByteArray, field: String = "attestationObject"): ValidationResult<Base64UrlBytes>
Extracts the authData byte string from a structurally valid attestation object.
Link copied to clipboard
fun parseAuthenticationResponse(value: RawAuthenticationResponse): ValidationResult<AuthenticationResponse>
Interprets a byte-preserving assertion response without depending on its JSON representation.
Link copied to clipboard
fun parseAuthenticatorData(bytes: ByteArray, field: String = "authenticatorData"): ValidationResult<ParsedAuthenticatorData>
Parses an authenticator-data byte sequence according to WebAuthn L3 §6.1.
Link copied to clipboard
fun parseRegistrationResponse(value: RawRegistrationResponse): ValidationResult<RegistrationResponse>
Interprets a byte-preserving registration response without depending on its JSON representation.