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.AuthorizerAuthorizes 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.Loggerlogger
-
Constructor Summary
Constructors Constructor Description IpRegexpAuthorizer()IpRegexpAuthorizer(java.lang.String regexpPattern)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisAuthorized(org.pac4j.core.context.WebContext context, org.pac4j.core.context.session.SessionStore sessionStore, java.util.List<org.pac4j.core.profile.UserProfile> profile)voidsetRegexpPattern(java.lang.String regexpPattern)java.lang.StringtoString()
-
-
-
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:
isAuthorizedin interfaceorg.pac4j.core.authorization.authorizer.Authorizer
-
setRegexpPattern
public void setRegexpPattern(java.lang.String regexpPattern)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-