|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.flume.auth.FlumeAuthenticationUtil
public class FlumeAuthenticationUtil
FlumeAuthentication utility class that provides methods to get an Authenticator. If proper credentials are provided KerberosAuthenticator is returned which can be used to execute as the authenticated principal , or else a SimpleAuthenticator which executes without any authentication
Method Summary | |
---|---|
static FlumeAuthenticator |
getAuthenticator(String principal,
String keytab)
If principal and keytab are null, this method returns a SimpleAuthenticator which executes without authentication. |
static CallbackHandler |
getSaslGssCallbackHandler()
Returns the standard SaslGssCallbackHandler from the hadoop common module |
static String[] |
splitKerberosName(String principal)
Resolves the principal using Hadoop common's SecurityUtil and splits the kerberos principal into three parts user name, host and kerberos realm |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static FlumeAuthenticator getAuthenticator(String principal, String keytab) throws SecurityException
principal
- keytab
-
SecurityException
public static CallbackHandler getSaslGssCallbackHandler()
public static String[] splitKerberosName(String principal) throws IOException
principal
-
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |