Package-level declarations

Types

Link copied to clipboard
class AttestationClient(client: HttpClient)

Mobile client, fetching attestation challenges and posting CSRs containing attestation statements to an attestation verification endpoint.

Properties

Link copied to clipboard

convenience shorthand to parse the attestation POST endpoint as a URL

Functions

Link copied to clipboard
suspend fun Signer.Attestable<*>.createCsr(challenge: AttestationChallenge, subjectName: List<RelativeDistinguishedName> = listOf(), additionalExtensions: List<X509CertificateExtension> = listOf(), additionalAttributes: List<Pkcs10CertificationRequestAttribute> = listOf()): KmmResult<Pkcs10CertificationRequest>

Creates a signed CSR from an attestable signer. Encodes the challenge's nonce into a KnownOIDs.serialNumber subjectName and the attestation statement into a Pkcs10CertificationRequestAttribute with AttestationChallenge.proofOID. Since this operation prepares and directly signs the CSR, it may require user authentication