Class JwksTokenValidator
java.lang.Object
io.fluxzero.idp.client.JwksTokenValidator
- All Implemented Interfaces:
TokenValidator
Default Fluxzero OIDC token validator for RS256 JWTs exposed through a tenant JWKS endpoint.
This is the production-oriented validator. It discovers the issuer metadata, fetches the JWKS,
caches RSA signing keys by issuer and validates RS256 signatures. It also enforces the registered
claims that make a token usable by a Fluxzero application: exact issuer match, non-empty
subject, configured audience, optional Fluxzero token_use, and the iat,
nbf and exp validity window.
The local stub IDP should not weaken this class. Test-specific trust belongs in another
TokenValidator implementation on the test classpath so application code can keep calling
TokenValidators.validate(TokenValidationRequest) in both environments.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvalidate(TokenValidationRequest request) Validates the token and returns normalized claims.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface TokenValidator
priority, supports
-
Constructor Details
-
JwksTokenValidator
public JwksTokenValidator()
-
-
Method Details
-
validate
Description copied from interface:TokenValidatorValidates the token and returns normalized claims.- Specified by:
validatein interfaceTokenValidator- Parameters:
request- the token, issuer and audience expectations- Returns:
- normalized claims from a valid token
-