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.
@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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class