Package de.xima.fc.interfaces.auth
Interface IAuthorizer
- All Superinterfaces:
Serializable
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Common interface for authorizers.
- Since:
- 8.0.0
- Author:
- XIMA Media GmbH
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isUserAuthorized
(IUser user, IAuthorizationContext context) Checks whether the given user is authorized for the given authorization context.
-
Method Details
-
isUserAuthorized
Checks whether the given user is authorized for the given authorization context.- Parameters:
user
- to check authorization for.context
- holds information about the context that may be needed for the authorization check such as the current client or project.- Returns:
true
if the user is authorized andfalse
otherwise.
-