issueChallenge

fun issueChallenge(nonce: ByteArray, validity: <Error class: unknown class>?, timeZone: <Error class: unknown class>?, postEndpoint: String, timeOffset: <Error class: unknown class> = Duration.ZERO): <Error class: unknown class>(source)

Issues a new attestation challenge, using nonce, valid for a duration of validity, expecting an CSR containing an attestation statement to be HTTP POSTed to postEndpoint. It is recommended, to pass a timeZone.

It is possible to pass a timeOffset to account for an incorrect server clock. This value is added to the returned AttestationChallenge.issuedAt and accounted for when calculating AttestationChallenge.validUntil.