Package org.dspace.app.rest.security


package org.dspace.app.rest.security
DSpace-specific concepts and behaviors to support Spring Security. These may be used by Spring EL expressions in Spring Security annotations.

hasPermission terms are evaluated by DSpacePermissionEvaluator, an implementation of Spring's PermissionEvaluator. It tests access to specific model objects (Item, EPerson etc.) using those objects' policies. It is injected with a collection of RestPermissionEvaluatorPlugins which do the work.

hasAuthority terms are implemented by GrantedAuthority implementations such as EPersonRestAuthenticationProvider. These test for authorization properties of the session itself, such as membership in the site administrators group.

*PermissionEvaluatorPlugin classes test permission for specific types of objects. They implement RestPermissionEvaluatorPlugin.

Other classes TBD:

  • *Filter
  • *Configuration