Class IpRegexpAuthenticator

  • All Implemented Interfaces:
    org.pac4j.core.credentials.authenticator.Authenticator

    public class IpRegexpAuthenticator
    extends AbstractRegexpAuthenticator
    implements org.pac4j.core.credentials.authenticator.Authenticator
    Authenticates users based on their IP and a regexp pattern.
    Since:
    1.8.0
    Author:
    Jerome Leleu
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void internalInit()  
      void validate​(org.pac4j.core.credentials.Credentials credentials, org.pac4j.core.context.WebContext context, org.pac4j.core.context.session.SessionStore sessionStore)  
      • Methods inherited from class org.pac4j.core.profile.definition.ProfileDefinitionAware

        defaultProfileDefinition, getProfileDefinition, setProfileDefinition
      • Methods inherited from class org.pac4j.core.util.InitializableObject

        afterInternalInit, beforeInternalInit, init, isInitialized
      • Methods inherited from class java.lang.Object

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

      • IpRegexpAuthenticator

        public IpRegexpAuthenticator()
      • IpRegexpAuthenticator

        public IpRegexpAuthenticator​(java.lang.String regexpPattern)
    • Method Detail

      • internalInit

        protected void internalInit()
        Specified by:
        internalInit in class org.pac4j.core.util.InitializableObject
      • validate

        public void validate​(org.pac4j.core.credentials.Credentials credentials,
                             org.pac4j.core.context.WebContext context,
                             org.pac4j.core.context.session.SessionStore sessionStore)
        Specified by:
        validate in interface org.pac4j.core.credentials.authenticator.Authenticator