PolicyGuard

@Component
class PolicyGuard(source)

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun check(policyKey: String)

Verifica se o usuário tem a permissão, considerando:

Link copied to clipboard
fun checkLimit(policyKey: String, requiredValue: Int)

Verifica limites numéricos (Max Usage, Quota, etc).