Class AbstractRequireAnyAuthorizer<E>
java.lang.Object
org.pac4j.core.authorization.authorizer.ProfileAuthorizer
org.pac4j.core.authorization.authorizer.AbstractRequireElementAuthorizer<E>
org.pac4j.core.authorization.authorizer.AbstractRequireAnyAuthorizer<E>
- All Implemented Interfaces:
Authorizer
- Direct Known Subclasses:
CheckHttpMethodAuthorizer,CheckProfileTypeAuthorizer,RequireAnyAttributeAuthorizer,RequireAnyPermissionAuthorizer,RequireAnyRoleAuthorizer
An authorizer to require any of 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 -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanisProfileAuthorized(WebContext context, SessionStore sessionStore, UserProfile profile) Whether a specific profile is authorized.toString()Methods inherited from class org.pac4j.core.authorization.authorizer.AbstractRequireElementAuthorizer
check, getElements, isAuthorized, setElements, setElements, setElementsMethods inherited from class org.pac4j.core.authorization.authorizer.ProfileAuthorizer
handleError, isAllAuthorized, isAnyAuthorized
-
Constructor Details
-
AbstractRequireAnyAuthorizer
public AbstractRequireAnyAuthorizer()
-
-
Method Details
-
isProfileAuthorized
protected boolean isProfileAuthorized(WebContext context, SessionStore sessionStore, UserProfile profile) Description copied from class:ProfileAuthorizerWhether a specific profile is authorized.- Specified by:
isProfileAuthorizedin classProfileAuthorizer- Parameters:
context- the web contextsessionStore- the session storeprofile- the user profile- Returns:
- whether a specific profile is authorized
-
toString
-