Package-level declarations

Types

Link copied to clipboard
@Serializable
data class AttestationChallenge constructor(val issuedAt: Instant, val validity: Duration? = null, val timeZone: TimeZone? = null, val nonce: ByteArray, val attestationEndpoint: String, val proofOID: ObjectIdentifier)

A generic representation of a challenge sent the server.

Link copied to clipboard
@Serializable
sealed class AttestationResponse
Link copied to clipboard
Link copied to clipboard
class InstantLongSerializer : KSerializer<Instant>

Properties

Link copied to clipboard
val TbsCertificationRequest.challenge: KmmResult<ByteArray>

Tries to extract the challenge from a TBS CSR's subject name, given it is encoded into an RDN containing a KnownOIDs.serialNumber

Functions

Link copied to clipboard
fun TbsCertificationRequest.attestationStatementForChallenge(challenge: AttestationChallenge): KmmResult<Attestation>

Tries to extract an attestation statement from a TBS CSR based on the proofOID specified in challenge

Link copied to clipboard
fun TbsCertificationRequest.attestationStatementForOid(oid: ObjectIdentifier): KmmResult<Attestation>

Tries to extract an attestation statement from a TBS CSR, given it is present as an attribute with oid