public class ProxyUserService extends java.lang.Object implements Service
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CONF_PREFIX |
static java.lang.String |
GROUPS |
static java.lang.String |
HOSTS |
DEFAULT_LOCK_TIMEOUT, lockTimeout| Constructor and Description |
|---|
ProxyUserService() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Destroys the service.
|
java.lang.Class<? extends Service> |
getInterface()
Returns the service interface.
|
void |
init(Services services)
Initializes the service.
|
void |
validate(java.lang.String proxyUser,
java.lang.String proxyHost,
java.lang.String doAsUser)
Verifies a proxyuser.
|
public static final java.lang.String CONF_PREFIX
public static final java.lang.String GROUPS
public static final java.lang.String HOSTS
public ProxyUserService()
public java.lang.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(java.lang.String proxyUser, java.lang.String proxyHost, java.lang.String doAsUser) throws java.io.IOException, java.security.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.java.io.IOException - thrown if an error during the validation has occurred.java.security.AccessControlException - thrown if the user is not allowed to perform the proxyuser request.Copyright © 2017 Apache Software Foundation. All Rights Reserved.