Interface AuthorizationGenerator
- All Known Implementing Classes:
DefaultRolesAuthorizationGenerator
,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.
Generate the authorization roles for this user profile.
- Since:
- 1.5.0
- Author:
- Jerome Leleu
-
Method Summary
Modifier and TypeMethodDescriptiongenerate
(CallContext ctx, UserProfile profile) Generate the authorization information from and for the user profile.
-
Method Details
-
generate
Generate the authorization information from and for the user profile.- Parameters:
ctx
- the current contextprofile
- the user profile for which to generate the authorization information.- Returns:
- the updated profile or a new one (optional)
-