Class AbstractRequireAllAuthorizer<E>
java.lang.Object
org.pac4j.core.authorization.authorizer.ProfileAuthorizer
org.pac4j.core.authorization.authorizer.AbstractRequireElementAuthorizer<E>
org.pac4j.core.authorization.authorizer.AbstractRequireAllAuthorizer<E>
- All Implemented Interfaces:
Authorizer
- Direct Known Subclasses:
RequireAllRolesAuthorizer
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
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
isProfileAuthorized
(WebContext context, SessionStore sessionStore, UserProfile 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
-
Constructor Details
-
AbstractRequireAllAuthorizer
public AbstractRequireAllAuthorizer()
-
-
Method Details
-
isProfileAuthorized
protected boolean isProfileAuthorized(WebContext context, SessionStore sessionStore, UserProfile profile) Description copied from class:ProfileAuthorizer
Whether a specific profile is authorized.- Specified by:
isProfileAuthorized
in classProfileAuthorizer
- Parameters:
context
- the web contextsessionStore
- the session storeprofile
- the user profile- Returns:
- whether a specific profile is authorized
-