FRAPolicy

@objc
public protocol FRAPolicy

The FRAPolicy is an abstract Policy that provides general guidance on implementing policies to enforce the security of an Authenticator app. A policy must contain an unique name and instructions to determinate whether a condition is valid at a particular time. The policy may optionally contain some data to be used in the validation procedure.

JSON representation of a policy: {“policyName” : { policyData }}

  • The attributes used for policy validation.

    Declaration

    Swift

    var data: Any? { get set }
  • The name of the Policy.

    Declaration

    Swift

    var name: String { get }
  • Evaluate the policy compliance.

    Declaration

    Swift

    func evaluate() -> Bool

    Return Value

    true if the policy comply, false otherwise