Class DefaultAuthorizationChecker
- java.lang.Object
-
- org.pac4j.core.authorization.checker.DefaultAuthorizationChecker
-
- All Implemented Interfaces:
AuthorizationChecker
public class DefaultAuthorizationChecker extends Object implements AuthorizationChecker
Default way to check the authorizations (with default authorizers).- Since:
- 1.8.0
- Author:
- Jerome Leleu
-
-
Constructor Summary
Constructors Constructor Description DefaultAuthorizationChecker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isAuthorized(WebContext context, List<UserProfile> profiles, String authorizersValue, Map<String,Authorizer> authorizersMap)
Check whether the user is authorized.protected boolean
isAuthorized(WebContext context, List<UserProfile> profiles, List<Authorizer> authorizers)
-
-
-
Method Detail
-
isAuthorized
public boolean isAuthorized(WebContext context, List<UserProfile> profiles, String authorizersValue, Map<String,Authorizer> authorizersMap)
Description copied from interface:AuthorizationChecker
Check whether the user is authorized.- Specified by:
isAuthorized
in interfaceAuthorizationChecker
- Parameters:
context
- the web contextprofiles
- the profileauthorizersValue
- the authorizersauthorizersMap
- the map of authorizers- Returns:
- whether the user is authorized.
-
isAuthorized
protected boolean isAuthorized(WebContext context, List<UserProfile> profiles, List<Authorizer> authorizers)
-
-