MfaPolicyEvaluator

The MFA Policy Evaluator is used by the SDK to enforce Policy rules, such as Device Tampering Policy. It consist of one or more MfaPolicy objects. Each Policy contain instructions that determine whether it comply to a particular condition at a particular time.

This class provides a DSL-style configuration and can evaluate policies against credentials to determine compliance.

Types

Link copied to clipboard
object Companion
Link copied to clipboard
class Config

Config class for constructing MfaPolicyEvaluator instances.

Functions

Link copied to clipboard
suspend fun evaluate(context: Context, credentialPolicies: String?): MfaPolicyResult

Evaluate policies for a credential with embedded policy configuration.

suspend fun evaluate(context: Context, policiesJson: JsonObject): MfaPolicyResult

Evaluate policies against a JSON configuration.

Link copied to clipboard

Get all available policies in this evaluator.

Link copied to clipboard
fun getPolicy(policyName: String): MfaPolicy?

Get a specific policy by name.