SecurityChecker class

Runs platform-appropriate security checks to detect jailbroken or rooted devices.

Orchestrates a set of SecurityCheckType checks against an IJailbreakRootDetector. Boolean checks (isNotTrust, isJailBroken, etc.) fail fast on the first detected issue; the composite checkForIssues scan collects all issues before throwing. Throws SingleJailbreakException or MultiJailbreakException on detection.

Constructors

SecurityChecker({required IJailbreakRootDetector detector, required AppLogger logger, Set<SecurityCheckType>? enabledChecks})
Creates a checker using detector for platform calls.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

checkForSecurityIssues() Future<void>
Runs all enabled security checks.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited