IosAttestationConfiguration
Configuration class for Apple App Attestation
Constructors
Types
Specifies a to-be attested app
Container class for iOS versions. Necessary, iOS versions used to always be encoded into attestation statements using SemVer syntax. Newer iPhones, however, use a hex string representation of the build number instead. Since it makes rarely sense to only check for SemVer not for a hex-encoded build number (i.e only accept older iPhones), encapsulating both variants into a dedicated type ensures that either both or neither are set.
Properties
List of applications that can be attested
The maximum age an attestation statement is considered valid. Defaults to ReceiptValidator.APPLE_RECOMMENDED_MAX_AGE + Makoto.DEFAULT_TIME_OFFSET
Optional parameter. If present, the iOS version of the attested app must be greater or equal to this parameter Uses SemVer syntax. Can be overridden for individual apps.
Manually specify the trust anchors. Apple's trust anchors come in pairs: a TrustedRootPair.attestationRoot and a TrustedRootPair.receiptRoot. Defaults to the Apples trust anchors available in APPLE_DEFAULT_TRUSTED_ROOTS. Overriding this set is useful for automated end-to-end tests, for example. Note that currently only Certificates are supported as trust anchors, no raw public keys