Annotation Type AuthenticationPrincipal
-
@Target({PARAMETER,ANNOTATION_TYPE}) @Retention(RUNTIME) @Documented @Deprecated public @interface AuthenticationPrincipalDeprecated.UseAuthenticationPrincipalinstead.Annotation that binds a method parameter or method return value to theAuthentication.getPrincipal(). This is necessary to signal that the argument should be resolved to the current user rather than a user that might be edited on a form.- Since:
- 3.2
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description booleanerrorOnInvalidTypeDeprecated.True if aClassCastExceptionshould be thrown when the currentAuthentication.getPrincipal()is the incorrect type.
-
-
-
Element Detail
-
errorOnInvalidType
boolean errorOnInvalidType
Deprecated.True if aClassCastExceptionshould be thrown when the currentAuthentication.getPrincipal()is the incorrect type. Default is false.- Returns:
- Default:
- false
-
-