FRAPolicyEvaluator
public class FRAPolicyEvaluator
The Policy Evaluator is used by the SDK to enforce Policy rules, such as Device Tampering Policy.
It consist of one or more FRAPolicy
objects. Each Policy contain instructions that
determine whether it comply to a particular condition at a particular time.
-
Default set of policies available.
Declaration
Swift
public static let defaultPolicies: [FRAPolicy]
-
The list of polices to be evaluated.
Declaration
Swift
public internal(set) var policies: [FRAPolicy]? { get }
-
Initializes FRAPolicyEvaluator object
Declaration
Swift
public init()
-
Result of the Policy Evaluator execution.
See moreDeclaration
Swift
public struct Result
-
Registers a new array of policies; the new array can override the existing policies, or append on top of existing array. This method does not check if a policy has been added to the list previously.
Throws
FRAErrorDeclaration
Swift
public func registerPolicies(policies: [FRAPolicy], shouldOverride: Bool = true) throws
Parameters
policies
An array of FRAPolicy to be registered
shouldOverride
Boolean indicator whether or not to override existing array
-
Evaluate all registered Policies against an URI.
Declaration
Swift
public func evaluate(uri: URL) -> Result
Parameters
uri
URL of QR Code