AttestationChallenge
Represents a challenge for attestation processes, encapsulating necessary details such as the nonce, validity, and additional constraints or metadata for the attestation proof.
The class provides serialization support for its fields and enforces strict requirements, such as the maximum size of the nonce. It includes both diagnostic and functional properties to support attestation protocols and ensure client compliance with server requirements.
Throws
If the nonce exceeds 128 bytes.
Constructors
Properties
Optional user-defined payload.
The endpoint to post the CSR containing the attestation proof to.
Whether to include a generic make and model (such as "Google Pixel 8", or "iPhone 16" with the attestation proof). Setting this to an OID other than null will include a device name on a best-effort basis. Defaults to null (i.e., no device name will be included).
The issuing time of the nonce. Useful to detect clock drifts and exit early. This is not considered sensible information, as clocks must be in sync anyhow.
Specifies key constraints for the client
The nonce chosen by the server. Must be at most 128 bytes long, as this is the largest nonce size supported by Android.
Optional runtime-only attachment for application state.
How long this nonce is considered valid.
Lazily-evaluated property
Indicates the wire format version; needs to default to null for the default serializer to handle it correctly. The public constructor sets this to CURRENT_VERSION.