Skip to content

Rewrite of TOMEE-2517 Bean Validation with MicroProfile JWT#566

Merged
dblevins merged 8 commits intoapache:masterfrom
dblevins:mpjwt-bval-rework
Sep 9, 2019
Merged

Rewrite of TOMEE-2517 Bean Validation with MicroProfile JWT#566
dblevins merged 8 commits intoapache:masterfrom
dblevins:mpjwt-bval-rework

Conversation

@dblevins
Copy link
Contributor

@dblevins dblevins commented Sep 9, 2019

Overall idea of this class is to split a developer's bean class into two parts which are used by the different code that needs to validate.

So if you have a class called Foo that uses Bean Validation constraints for both JWT and Return value, you will get the following two classes generated:

  • Foo$$ReturnConstraints used by an updated version of BValInterceptor
  • Foo$$JwtConstraints used by ValidationInterceptor (which likely needs a more specific name now)

To determine if we need to do any of this for a particular class, we have ClassValidationData. If it looks as there are JWT constraints on the class, we use ClassValidationGenerator to handle the generation, which in turn delegates to these classes to do the ASM work:

  • JwtValidationGenerator
  • ReturnValidationGenerator

TOMEE-2517 Bean Validation with MicroProfile JWT
TOMEE-2517 Bean Validation with MicroProfile JWT
TOMEE-2517 Bean Validation with MicroProfile JWT
TOMEE-2517 Bean Validation with MicroProfile JWT
TOMEE-2517 Bean Validation with MicroProfile JWT
TOMEE-2517 Bean Validation with MicroProfile JWT
TOMEE-2517 Bean Validation with MicroProfile JWT
@asf-ci
Copy link

asf-ci commented Sep 9, 2019

Can one of the admins verify this patch?

2 similar comments
@asf-ci
Copy link

asf-ci commented Sep 9, 2019

Can one of the admins verify this patch?

@asf-ci
Copy link

asf-ci commented Sep 9, 2019

Can one of the admins verify this patch?

@dblevins dblevins merged commit 809b418 into apache:master Sep 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants