Class OrAuthorizer
java.lang.Object
org.pac4j.core.authorization.authorizer.OrAuthorizer
- All Implemented Interfaces:
Authorizer
The disjunction of authorizers.
- Since:
- 3.4.0
- Author:
- Sergey Morgunov
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isAuthorized
(WebContext context, SessionStore sessionStore, List<UserProfile> profiles) Checks if the user profiles and / or the current web context are authorized.static OrAuthorizer
or
(Authorizer... authorizers) or.
-
Constructor Details
-
OrAuthorizer
Constructor for OrAuthorizer.
- Parameters:
authorizers
- aList
object
-
-
Method Details
-
isAuthorized
public boolean isAuthorized(WebContext context, SessionStore sessionStore, List<UserProfile> profiles) Checks if the user profiles and / or the current web context are authorized.- Specified by:
isAuthorized
in interfaceAuthorizer
- Parameters:
context
- the web contextsessionStore
- the session storeprofiles
- the user profiles- Returns:
- if the access is authorized
-
or
or.
- Parameters:
authorizers
- aAuthorizer
object- Returns:
- a
OrAuthorizer
object
-