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:
RequireAllPermissionsAuthorizer
,RequireAllRolesAuthorizer
public abstract class AbstractRequireAllAuthorizer<E> extends AbstractRequireElementAuthorizer<E>
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, SessionStore sessionStore, UserProfile profile)
Whether a specific profile is authorized.java.lang.String
toString()
-
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, 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
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-