JWTValidatorBase class abstract
Base abstracta para todos los validadores JWT personalizados.
Los desarrolladores extienden esta clase para crear validadores específicos con control total sobre la estructura del JWT y la lógica de validación.
Constructors
- JWTValidatorBase.new()
-
Constructor const para permitir validadores const en anotaciones
const
Properties
- defaultErrorMessage → String
-
Mensaje de error por defecto cuando la validación falla
no setter
- 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
-
onValidationSuccess(
Request request, Map< String, dynamic> jwtPayload) → void - Callback opcional ejecutado cuando la validación es exitosa
-
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
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited