Class AbstractRequireAllAuthorizer<E,U extends UserProfile>
- java.lang.Object
-
- org.pac4j.core.authorization.authorizer.ProfileAuthorizer<U>
-
- org.pac4j.core.authorization.authorizer.AbstractRequireElementAuthorizer<E,U>
-
- org.pac4j.core.authorization.authorizer.AbstractRequireAllAuthorizer<E,U>
-
- All Implemented Interfaces:
Authorizer<U>
- Direct Known Subclasses:
RequireAllPermissionsAuthorizer
,RequireAllRolesAuthorizer
public abstract class AbstractRequireAllAuthorizer<E,U extends UserProfile> extends AbstractRequireElementAuthorizer<E,U>
An authorizer to require all the elements.- Since:
- 1.8.1
- Author:
- Jerome Leleu
-
-
Field Summary
-
Fields inherited from class org.pac4j.core.authorization.authorizer.AbstractRequireElementAuthorizer
elements
-
-
Constructor Summary
Constructors Constructor Description AbstractRequireAllAuthorizer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
isProfileAuthorized(WebContext context, U profile)
Whether a specific profile is authorized.-
Methods inherited from class org.pac4j.core.authorization.authorizer.AbstractRequireElementAuthorizer
check, getElements, isAuthorized, setElements, setElements, setElements
-
Methods inherited from class org.pac4j.core.authorization.authorizer.ProfileAuthorizer
handleError, isAllAuthorized, isAnyAuthorized
-
-
-
-
Method Detail
-
isProfileAuthorized
protected boolean isProfileAuthorized(WebContext context, U profile)
Description copied from class:ProfileAuthorizer
Whether a specific profile is authorized.- Specified by:
isProfileAuthorized
in classProfileAuthorizer<U extends UserProfile>
- Parameters:
context
- the web contextprofile
- the user profile- Returns:
- whether a specific profile is authorized
-
-