public class ProxyUserService extends Object implements Service
This check is based on the following criteria:
| Modifier and Type | Field and Description | 
|---|---|
static String | 
CONF_PREFIX  | 
static String | 
GROUPS  | 
static String | 
HOSTS  | 
DEFAULT_LOCK_TIMEOUT, lockTimeout| Constructor and Description | 
|---|
ProxyUserService()  | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
destroy()
Destroys the service. 
 | 
Class<? extends Service> | 
getInterface()
Returns the service interface. 
 | 
void | 
init(Services services)
Initializes the service. 
 | 
void | 
validate(String proxyUser,
                String proxyHost,
                String doAsUser)
Verifies a proxyuser. 
 | 
public static final String CONF_PREFIX
public static final String GROUPS
public static final String HOSTS
public ProxyUserService()
public Class<? extends Service> getInterface()
getInterface in interface ServiceProxyUserServicepublic void init(Services services) throws ServiceException
init in interface Serviceservices - services singleton initializing the service.ServiceException - thrown if the service could not be configured correctly.public void validate(String proxyUser, String proxyHost, String doAsUser) throws IOException, AccessControlException
proxyUser - user name of the proxy user.proxyHost - host the proxy user is making the request from.doAsUser - user the proxy user is impersonating.IOException - thrown if an error during the validation has occurred.AccessControlException - thrown if the user is not allowed to perform the proxyuser request.Copyright © 2016 Apache Software Foundation. All rights reserved.