Class IpRegexpAuthenticator
java.lang.Object
org.pac4j.core.util.InitializableObject
org.pac4j.core.profile.definition.ProfileDefinitionAware
org.pac4j.http.credentials.authenticator.AbstractRegexpAuthenticator
org.pac4j.http.credentials.authenticator.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
-
Field Summary
Fields inherited from class org.pac4j.http.credentials.authenticator.AbstractRegexpAuthenticator
logger, pattern, regexpPattern
Fields inherited from interface org.pac4j.core.credentials.authenticator.Authenticator
ALWAYS_VALIDATE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
internalInit
(boolean forceReinit) Optional<org.pac4j.core.credentials.Credentials>
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.http.credentials.authenticator.AbstractRegexpAuthenticator
setRegexpPattern
Methods inherited from class org.pac4j.core.profile.definition.ProfileDefinitionAware
getProfileDefinition, setProfileDefinition, setProfileDefinitionIfUndefined
Methods inherited from class org.pac4j.core.util.InitializableObject
afterInternalInit, beforeInternalInit, getInitialized, getLastAttempt, getMaxAttempts, getMinTimeIntervalBetweenAttemptsInMilliseconds, getNbAttempts, init, init, isInitialized, reinit, setMaxAttempts, setMinTimeIntervalBetweenAttemptsInMilliseconds, shouldInitialize, toString
-
Constructor Details
-
IpRegexpAuthenticator
public IpRegexpAuthenticator() -
IpRegexpAuthenticator
-
-
Method Details
-
internalInit
protected void internalInit(boolean forceReinit) - Specified by:
internalInit
in classorg.pac4j.core.util.InitializableObject
-
validate
public Optional<org.pac4j.core.credentials.Credentials> validate(org.pac4j.core.credentials.Credentials credentials, org.pac4j.core.context.WebContext context, org.pac4j.core.context.session.SessionStore sessionStore) - Specified by:
validate
in interfaceorg.pac4j.core.credentials.authenticator.Authenticator
-