public class IpRegexpAuthenticator extends ProfileDefinitionAware<IpProfile> implements Authenticator<TokenCredentials>
Modifier and Type | Field and Description |
---|---|
protected org.slf4j.Logger |
logger |
Constructor and Description |
---|
IpRegexpAuthenticator() |
IpRegexpAuthenticator(String regexpPattern) |
Modifier and Type | Method and Description |
---|---|
protected void |
internalInit()
Internal initialization of the object.
|
void |
setRegexpPattern(String regexpPattern) |
String |
toString() |
void |
validate(TokenCredentials credentials,
WebContext context)
Validate the credentials.
|
defaultProfileDefinition, getProfileDefinition, setProfileDefinition
init
public IpRegexpAuthenticator()
public IpRegexpAuthenticator(String regexpPattern)
protected void internalInit()
InitializableObject
internalInit
in class InitializableObject
public void validate(TokenCredentials credentials, WebContext context)
Authenticator
CredentialsException
in case of failure.validate
in interface Authenticator<TokenCredentials>
credentials
- the given credentialscontext
- the web contextpublic void setRegexpPattern(String regexpPattern)
Copyright © 2018. All rights reserved.