Class IpRegexpAuthorizer
java.lang.Object
org.pac4j.http.authorization.authorizer.IpRegexpAuthorizer
- All Implemented Interfaces:
org.pac4j.core.authorization.authorizer.Authorizer
public class IpRegexpAuthorizer
extends Object
implements org.pac4j.core.authorization.authorizer.Authorizer
Authorizes users based on their IP and a regexp pattern.
- Since:
- 1.8.1
- Author:
- Jerome Leleu
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isAuthorized
(org.pac4j.core.context.WebContext context, org.pac4j.core.context.session.SessionStore sessionStore, List<org.pac4j.core.profile.UserProfile> profile) void
setRegexpPattern
(String regexpPattern) toString()
-
Field Details
-
logger
protected final org.slf4j.Logger logger
-
-
Constructor Details
-
IpRegexpAuthorizer
public IpRegexpAuthorizer() -
IpRegexpAuthorizer
-
-
Method Details
-
isAuthorized
public boolean isAuthorized(org.pac4j.core.context.WebContext context, org.pac4j.core.context.session.SessionStore sessionStore, List<org.pac4j.core.profile.UserProfile> profile) - Specified by:
isAuthorized
in interfaceorg.pac4j.core.authorization.authorizer.Authorizer
-
setRegexpPattern
-
toString
-