Class AndAuthorizer
java.lang.Object
org.pac4j.core.authorization.authorizer.AndAuthorizer
- All Implemented Interfaces:
Authorizer
The conjunction of authorizers.
- Since:
- 3.4.0
- Author:
- Sergey Morgunov
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Authorizerand(Authorizer... authorizers) booleanisAuthorized(WebContext context, SessionStore sessionStore, List<UserProfile> profiles) Checks if the user profiles and / or the current web context are authorized.toString()
-
Constructor Details
-
AndAuthorizer
-
-
Method Details
-
isAuthorized
public boolean isAuthorized(WebContext context, SessionStore sessionStore, List<UserProfile> profiles) Description copied from interface:AuthorizerChecks if the user profiles and / or the current web context are authorized.- Specified by:
isAuthorizedin interfaceAuthorizer- Parameters:
context- the web contextsessionStore- the session storeprofiles- the user profiles- Returns:
- if the access is authorized
-
and
-
toString
-