org.apache.hive.service.auth
Class LdapAuthenticationProviderImpl

java.lang.Object
  extended by org.apache.hive.service.auth.LdapAuthenticationProviderImpl
All Implemented Interfaces:
PasswdAuthenticationProvider

public class LdapAuthenticationProviderImpl
extends Object
implements PasswdAuthenticationProvider


Method Summary
 void Authenticate(String user, String password)
          The Authenticate method is called by the HiveServer2 authentication layer to authenticate users for their requests.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

Authenticate

public void Authenticate(String user,
                         String password)
                  throws AuthenticationException
Description copied from interface: PasswdAuthenticationProvider
The Authenticate method is called by the HiveServer2 authentication layer to authenticate users for their requests. If a user is to be granted, return nothing/throw nothing. When a user is to be disallowed, throw an appropriate AuthenticationException. For an example implementation, see LdapAuthenticationProviderImpl.

Specified by:
Authenticate in interface PasswdAuthenticationProvider
Parameters:
user - - The username received over the connection request
password - - The password received over the connection request
Throws:
AuthenticationException - - When a user is found to be invalid by the implementation


Copyright © 2012 The Apache Software Foundation