DeviceTamperingPolicy
public struct DeviceTamperingPolicy : MfaPolicy, Sendable
Policy that checks for device tampering indicators.
Uses the TamperDetector module to analyze the device for signs of jailbreaking and compares the result against a configurable threshold.
JSON format: {“deviceTampering”: {“score”: 0.8}}
The score threshold can be configured in the policy data. If the device tampering score exceeds or equals the threshold, the policy will fail. Default threshold is 0.8 (matching Android implementation).
-
Declaration
Swift
public static let policyName: String -
Declaration
Swift
public var name: String { get } -
Declaration
Swift
public init() -
evaluate(data:Asynchronous) Declaration
Swift
public func evaluate(data: [String : Any]?) async throws -> Bool
View on GitHub