public class IpRegexpAuthenticator extends Object implements TokenAuthenticator
Modifier and Type | Field and Description |
---|---|
protected org.slf4j.Logger |
logger |
Constructor and Description |
---|
IpRegexpAuthenticator() |
IpRegexpAuthenticator(String regexpPattern) |
Modifier and Type | Method and Description |
---|---|
void |
setRegexpPattern(String regexpPattern) |
String |
toString() |
void |
validate(TokenCredentials credentials,
WebContext context)
Validate the credentials.
|
public IpRegexpAuthenticator()
public IpRegexpAuthenticator(String regexpPattern)
public void validate(TokenCredentials credentials, WebContext context) throws HttpAction
Authenticator
CredentialsException
in case of failure.validate
in interface Authenticator<TokenCredentials>
validate
in interface TokenAuthenticator
credentials
- the given credentialscontext
- the web contextHttpAction
- requires a specific HTTP action if necessarypublic void setRegexpPattern(String regexpPattern)
Copyright © 2016. All rights reserved.