Interface AuthorizationGenerator

All Known Implementing Classes:
DefaultRolesPermissionsAuthorizationGenerator, FromAttributesAuthorizationGenerator, LoadLinkedUserAuthorizationGenerator, SpringSecurityPropertiesAuthorizationGenerator
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface AuthorizationGenerator
Generate the authorization roles and permissions for this user profile.
Since:
1.5.0
Author:
Jerome Leleu
  • Method Details

    • generate

      Optional<UserProfile> generate(WebContext context, SessionStore sessionStore, UserProfile profile)
      Generate the authorization information from and for the user profile.
      Parameters:
      context - the web context
      sessionStore - the session store
      profile - the user profile for which to generate the authorization information.
      Returns:
      the updated profile or a new one (optional)