public class FlumeAuthenticationUtil extends Object
Modifier and Type | Method and Description |
---|---|
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
|
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
Copyright © 2009-2016 Apache Software Foundation. All Rights Reserved.