Annotation Type RunAsUser
-
@Retention(RUNTIME) @Target(METHOD) public @interface RunAsUser
Annotation saying the function should be run as theUser
identified in thevalue()
. The user should be identified using SpEL. Example usage:@RunAsUser("#user") public void testMethod(User user){...}
- See Also:
RunAsUserAspect
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.String
value
SpEL expression denoting the user to add to the security context prior to running the annotated method
-
-
-
Element Detail
-
value
java.lang.String value
SpEL expression denoting the user to add to the security context prior to running the annotated method- Returns:
- SpEL expression identifying a
User
object
-
-