Class 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  
    • 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()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • logger

        protected final org.slf4j.Logger logger
    • Constructor Detail

      • IpRegexpAuthorizer

        public IpRegexpAuthorizer()
      • IpRegexpAuthorizer

        public IpRegexpAuthorizer​(java.lang.String regexpPattern)
    • 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 interface org.pac4j.core.authorization.authorizer.Authorizer
      • setRegexpPattern

        public void setRegexpPattern​(java.lang.String regexpPattern)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object