org.apache.hive.service.auth
Class CustomAuthenticationProviderImpl
java.lang.Object
org.apache.hive.service.auth.CustomAuthenticationProviderImpl
- All Implemented Interfaces:
- PasswdAuthenticationProvider
public class CustomAuthenticationProviderImpl
- 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 |
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 requestpassword
- - 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