MyBusinessHoursValidator class
Validador para horarios de trabajo Verifica que el acceso ocurra dentro de horarios permitidos
- Inheritance
-
- Object
- JWTValidatorBase
- MyBusinessHoursValidator
Constructors
-
MyBusinessHoursValidator.new({int startHour = 9, int endHour = 17, List<
int> allowedWeekdays = const [1, 2, 3, 4, 5]}) -
const
Properties
-
allowedWeekdays
→ List<
int> -
final
- defaultErrorMessage → String
-
Mensaje de error por defecto cuando la validación falla
no setteroverride
- endHour → int
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- startHour → int
-
final
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
inherited
-
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