Class IpRegexpAuthorizer
- java.lang.Object
-
- org.pac4j.http.authorization.authorizer.IpRegexpAuthorizer
-
- All Implemented Interfaces:
org.pac4j.core.authorization.authorizer.Authorizer
public class IpRegexpAuthorizer extends java.lang.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
Fields Modifier and Type Field Description protected org.slf4j.Logger
logger
-
Constructor Summary
Constructors Constructor Description IpRegexpAuthorizer()
IpRegexpAuthorizer(java.lang.String regexpPattern)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isAuthorized(org.pac4j.core.context.WebContext context, org.pac4j.core.context.session.SessionStore sessionStore, java.util.List<org.pac4j.core.profile.UserProfile> profile)
void
setRegexpPattern(java.lang.String regexpPattern)
java.lang.String
toString()
-
-
-
Method Detail
-
isAuthorized
public boolean isAuthorized(org.pac4j.core.context.WebContext context, org.pac4j.core.context.session.SessionStore sessionStore, java.util.List<org.pac4j.core.profile.UserProfile> profile)
- Specified by:
isAuthorized
in interfaceorg.pac4j.core.authorization.authorizer.Authorizer
-
setRegexpPattern
public void setRegexpPattern(java.lang.String regexpPattern)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-