Ether Framework
Unified API docs for Ether modules
Loading...
Searching...
No Matches
dev.rafex.ether.jwt.internal.TokenValidator Class Reference

Valida tokens JWT contra las reglas de configuración. More...

Collaboration diagram for dev.rafex.ether.jwt.internal.TokenValidator:

Static Public Member Functions

static VerificationCode validate (final TokenClaims claims, final JsonNode payload, final JwtConfig config, final Instant now, final String tokenTypeRaw)
 Valida las reclamaciones (claims) del token según la configuración.

Detailed Description

Valida tokens JWT contra las reglas de configuración.

Esta clase contiene la lógica de validación de claims, fechas de expiración, y reglas específicas de aplicación. Es una clase utilitaria con métodos estáticos.

Definition at line 45 of file TokenValidator.java.

Member Function Documentation

◆ validate()

VerificationCode dev.rafex.ether.jwt.internal.TokenValidator.validate ( final TokenClaims claims,
final JsonNode payload,
final JwtConfig config,
final Instant now,
final String tokenTypeRaw )
static

Valida las reclamaciones (claims) del token según la configuración.

Parameters
claimsLas reclamaciones extraídas del token
payloadEl payload JSON original (para compatibilidad)
configLa configuración de validación JWT
nowLa hora actual para validaciones de tiempo
tokenTypeRawEl tipo de token crudo (puede ser null)
Returns
El código de verificación indicando el resultado

Definition at line 60 of file TokenValidator.java.

References dev.rafex.ether.jwt.TokenType.APP, dev.rafex.ether.jwt.VerificationCode.BAD_AUD, dev.rafex.ether.jwt.VerificationCode.BAD_FORMAT, dev.rafex.ether.jwt.VerificationCode.BAD_ISS, dev.rafex.ether.jwt.VerificationCode.BAD_TOKEN_TYPE, dev.rafex.ether.jwt.VerificationCode.MISSING_CLIENT_ID, dev.rafex.ether.jwt.VerificationCode.MISSING_SUB, dev.rafex.ether.jwt.VerificationCode.OK, dev.rafex.ether.jwt.VerificationCode.TOKEN_EXPIRED, and dev.rafex.ether.jwt.VerificationCode.TOKEN_NOT_BEFORE.

Referenced by dev.rafex.ether.jwt.DefaultTokenVerifier.verify().

Here is the caller graph for this function:

The documentation for this class was generated from the following file: