Closed
Description
It would be nice to be able to specify validators, converters, etc. without needing to downcast to the implementation.
Current Behavior
To configure any of these, I first use a factory method, and then I need to downcast to NimbusJwtDecoder
to call its setters:
JwtDecoder decoder = JwtDecoders.fromOidcIssuerLocation(issuer);
((NimbusJwtDecoder) decoder).setJwtValidator(validator);
...
Expected Behavior
For now, this ticket is just to get the conversation started. But something like JwtDecoderBuilder
might be nice:
JwtDecoder decoder = JwtDecoders
.withOidcIssuerLocation(issuer).jwtValidator(validator).build();