Annotation Interface ParameterizedJwtAuth


@Target({ANNOTATION_TYPE,PARAMETER}) @Retention(RUNTIME) @ConvertWith(AuthenticationArgumentProcessor.class) public @interface ParameterizedJwtAuth

Shortcut for @ConvertWith(ParameterizedJwtAuth.AuthenticationArgumentProcessor.class), which populates the passed @ParameterizedTest parameter.

Usage:
 @JwtAuthenticationSource({ @WithMockJwtAuth("NICE"), @WithMockJwtAuth("VERY_NICE") })
 void test(@ParameterizedJwtAuth JwtAuthenticationToken auth) throws Exception {
     ...
 }
 
Since:
6.1.12
Author:
Jerome Wacongne ch4mp@c4-soft.com
See Also: