Module io.inverno.mod.security
Class GroupsRoleBasedAccessControllerResolver
java.lang.Object
io.inverno.mod.security.accesscontrol.GroupsRoleBasedAccessControllerResolver
- All Implemented Interfaces:
AccessControllerResolver<GroupAwareAuthentication,
RoleBasedAccessController>
public class GroupsRoleBasedAccessControllerResolver
extends Object
implements AccessControllerResolver<GroupAwareAuthentication,RoleBasedAccessController>
Resolves a role based access controller from a GroupAwareAuthentication
.
It basically considers the groups to which the authenticated entity is in as roles in order to create the resulting role based access controller.
- Since:
- 1.5
- Author:
- Jeremy Kuhn
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionresolveAccessController
(GroupAwareAuthentication authentication) Resolves the access controller used to control access to services and resources for the specified authentication.
-
Constructor Details
-
GroupsRoleBasedAccessControllerResolver
public GroupsRoleBasedAccessControllerResolver()
-
-
Method Details
-
resolveAccessController
public Mono<RoleBasedAccessController> resolveAccessController(GroupAwareAuthentication authentication) Description copied from interface:AccessControllerResolver
Resolves the access controller used to control access to services and resources for the specified authentication.
- Specified by:
resolveAccessController
in interfaceAccessControllerResolver<GroupAwareAuthentication,
RoleBasedAccessController> - Parameters:
authentication
- an authentication- Returns:
- a mono emitting the access controller or an empty mono if no access controller could have been resolved
-