public class IpRegexpAuthorizer extends Object implements Authorizer<UserProfile>
Modifier and Type | Field and Description |
---|---|
protected org.slf4j.Logger |
logger |
Constructor and Description |
---|
IpRegexpAuthorizer() |
IpRegexpAuthorizer(String regexpPattern) |
Modifier and Type | Method and Description |
---|---|
boolean |
isAuthorized(WebContext context,
UserProfile profile)
Checks if the user profile is authorized for the current web context.
|
void |
setRegexpPattern(String regexpPattern) |
String |
toString() |
public IpRegexpAuthorizer()
public IpRegexpAuthorizer(String regexpPattern)
public boolean isAuthorized(WebContext context, UserProfile profile)
Authorizer
isAuthorized
in interface Authorizer<UserProfile>
context
- the web contextprofile
- the user profilepublic void setRegexpPattern(String regexpPattern)
Copyright © 2016. All rights reserved.