MyAdminValidator class
Validador para usuarios administradores Verifica rol, estado activo y permisos de administrador
- Inheritance
-
- Object
- JWTValidatorBase
- MyAdminValidator
Constructors
- MyAdminValidator.new()
-
const
Properties
- defaultErrorMessage → String
-
Mensaje de error por defecto cuando la validación falla
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onValidationFailed(
Request request, Map< String, dynamic> jwtPayload, String reason) → void -
Callback opcional ejecutado cuando la validación falla
override
-
onValidationSuccess(
Request request, Map< String, dynamic> jwtPayload) → void -
Callback opcional ejecutado cuando la validación es exitosa
override
-
toString(
) → String -
A string representation of this object.
inherited
-
validate(
Request request, Map< String, dynamic> jwtPayload) → ValidationResult -
Método obligatorio que implementa la lógica de validación
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited