STRUCT
HaapiAttestationLimitRefusal
Contents
- Properties
nextAttemptAfter
public struct HaapiAttestationLimitRefusal: Error, Equatable, Sendable
The cause of a new App Attest key the SDK refused to generate because the app-wide App Attest key limit is reached.
The limit allows 6 new keys at once and regains one each hour. A refusal is reported as
HaapiError.attestationFailure, whose error is "attestation_limited" and whose cause is a
HaapiAttestationLimitRefusal:
if let refusal = (error as? IdsvrError)?.cause as? HaapiAttestationLimitRefusal {
// refusal.nextAttemptAfter
}
No key is generated and nothing is sent to Apple. Retrying before nextAttemptAfter fails the same way.
Properties
nextAttemptAfter
public let nextAttemptAfter: Date?
When a new key is next allowed, or nil when the limit's record could not be read from or saved to storage.