November 2017
Intermediate to advanced
542 pages
14h 24m
English
The following quick reference chart may assist you in selecting a type of method authorization check to use:
|
Method authorization type |
Specified as |
JSR standard |
Allows SpEL expressions |
|
@PreAuthorize @PostAuthorize |
Annotation |
No |
Yes |
|
@RolesAllowed, @PermitAll, @DenyAll |
Annotation |
Yes |
No |
|
@Secure |
Annotation |
No |
No |
|
protect-pointcut |
XML |
No |
No |
Most Java 5 consumers of Spring Security will probably opt to use the JSR-250 annotations for maximum compatibility and reuse their business classes (and relevant constraints) across an IT organization. Where needed, these basic declarations can be replaced with the annotations that tie the code to the Spring Security ...
Read now
Unlock full access