Class AndAuthorizer
- java.lang.Object
-
- org.pac4j.core.authorization.authorizer.AndAuthorizer
-
- All Implemented Interfaces:
Authorizer
public class AndAuthorizer extends java.lang.Object implements Authorizer
The conjunction of authorizers.- Since:
- 3.4.0
- Author:
- Sergey Morgunov
-
-
Constructor Summary
Constructors Constructor Description AndAuthorizer(java.util.List<Authorizer> authorizers)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Authorizer
and(Authorizer... authorizers)
boolean
isAuthorized(WebContext context, SessionStore sessionStore, java.util.List<UserProfile> profiles)
Checks if the user profiles and / or the current web context are authorized.java.lang.String
toString()
-
-
-
Constructor Detail
-
AndAuthorizer
public AndAuthorizer(java.util.List<Authorizer> authorizers)
-
-
Method Detail
-
isAuthorized
public boolean isAuthorized(WebContext context, SessionStore sessionStore, java.util.List<UserProfile> profiles)
Description copied from interface:Authorizer
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
-
and
public static Authorizer and(Authorizer... authorizers)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-