org.apache.hadoop.lib.service.security
Class ProxyUserService

java.lang.Object
  extended by org.apache.hadoop.lib.server.BaseService
      extended by org.apache.hadoop.lib.service.security.ProxyUserService
All Implemented Interfaces:
Service, ProxyUser

@InterfaceAudience.Private
public class ProxyUserService
extends BaseService
implements ProxyUser


Nested Class Summary
static class ProxyUserService.ERROR
           
 
Constructor Summary
ProxyUserService()
           
 
Method Summary
 Class getInterface()
          Returns the interface implemented by this service.
 Class[] getServiceDependencies()
          Returns the service dependencies of this service.
protected  void init()
          Initializes the server.
 void validate(String proxyUser, String proxyHost, String doAsUser)
           
 
Methods inherited from class org.apache.hadoop.lib.server.BaseService
destroy, getPrefix, getPrefixedName, getServer, getServiceConfig, init, postInit, serverStatusChange
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProxyUserService

public ProxyUserService()
Method Detail

getInterface

public Class getInterface()
Description copied from interface: Service
Returns the interface implemented by this service. This interface is used the Server when the Server.get(Class) method is used to retrieve a service.

Specified by:
getInterface in interface Service
Returns:
the interface that identifies the service.

getServiceDependencies

public Class[] getServiceDependencies()
Description copied from class: BaseService
Returns the service dependencies of this service. The service will be instantiated only if all the service dependencies are already initialized.

This method returns an empty array (size 0)

Specified by:
getServiceDependencies in interface Service
Overrides:
getServiceDependencies in class BaseService
Returns:
an empty array (size 0).

init

protected void init()
             throws ServiceException
Description copied from class: BaseService
Initializes the server.

This method is called by BaseService.init(Server) after all service properties (properties prefixed with

Specified by:
init in class BaseService
Throws:
ServiceException - thrown if the service could not be initialized.

validate

public void validate(String proxyUser,
                     String proxyHost,
                     String doAsUser)
              throws IOException,
                     AccessControlException
Specified by:
validate in interface ProxyUser
Throws:
IOException
AccessControlException


Copyright © 2014 Apache Software Foundation. All Rights Reserved.