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(WebContext context)
Internal initialization of the object.
|
void |
setRegexpPattern(String regexpPattern) |
String |
toString() |
void |
validate(TokenCredentials credentials,
WebContext context)
Validate the credentials.
|
defaultProfileDefinition, getProfileDefinition, setProfileDefinition
init, reinit
public IpRegexpAuthenticator()
public IpRegexpAuthenticator(String regexpPattern)
protected void internalInit(WebContext context)
InitializableWebObject
internalInit
in class InitializableWebObject
context
- the web contextpublic void validate(TokenCredentials credentials, WebContext context) throws HttpAction, CredentialsException
Authenticator
CredentialsException
in case of failure.validate
in interface Authenticator<TokenCredentials>
credentials
- the given credentialscontext
- the web contextHttpAction
- requires a specific HTTP action if necessaryCredentialsException
- the credentials are invalidpublic void setRegexpPattern(String regexpPattern)
Copyright © 2018. All rights reserved.