AttestationClient
Mobile client, fetching attestation challenges and posting signed CSRs or unsigned TBS CSRs containing attestation statements to an attestation verification endpoint.
Based on a Ktor client. Automatically installs JSON content negotiation. maxAttestationPayloadBytes bounds challenge and response bodies before they are deserialized. For testing, it is possible to provide a custom clock for high-level checks. Note that this clock does not affect generated attestation proofs, because those will always use the actual device clock!
Functions
Posts an attestation proof created by createAttestationProof. Signed proofs send a complete PKCS#10 CSR; hash-authenticated proofs send an unsigned TBS CSR. Both are encoded as DER octet streams.
Fetches a challenge from an endpoint. This is the first step in an attestation ceremony.
Truly integrated attestation in a single call.