Module io.inverno.mod.security
Interface AccessControllerResolver<A extends Authentication,B extends AccessController>
- Type Parameters:
A- the type of authenticationB- the type of access controller
- All Known Implementing Classes:
ConfigurationSourcePermissionBasedAccessControllerResolver,GroupsRoleBasedAccessControllerResolver
- 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 AccessControllerResolver<A extends Authentication,B extends AccessController>
An access controller resolver is used to resolve an access controller from an Authentication.
An authentication basically identifies an authenticated entity in an application, an access controller resolver resolves the access controller that shall be used to determine whether the authenticated entity can access a service or a resource.
- Since:
- 1.5
- Author:
- Jeremy Kuhn
-
Method Summary
Modifier and TypeMethodDescriptionresolveAccessController(A authentication) Resolves the access controller used to control access to services and resources for the specified authentication.
-
Method Details
-
resolveAccessController
Resolves the access controller used to control access to services and resources for the specified authentication.
- Parameters:
authentication- an authentication- Returns:
- a mono emitting the access controller or an empty mono if no access controller could have been resolved
- Throws:
AccessControlException- if there was an error resolving the access controller
-