MfaPolicy

abstract class MfaPolicy

Base abstract class for all MFA policies.

MFA policies provide a way to enforce security requirements before allowing credential operations. Each policy can evaluate device state and return whether the current conditions meet security requirements.

Inheritors

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
abstract suspend fun evaluate(context: Context, data: JsonObject?): Boolean

Evaluate this policy against the current device context.

Link copied to clipboard
abstract fun getName(): String

Get the unique name identifier for this policy.

Link copied to clipboard
open override fun toString(): String

Returns a string representation of this policy.