Class SecurityUtil
- java.lang.Object
-
- org.apache.accumulo.server.security.SecurityUtil
-
public class SecurityUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description SecurityUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetServerPrincipal(String configuredPrincipal)SecurityUtil.getServerPrincipal(String, String)static voidserverLogin(AccumuloConfiguration acuConf)This method is for logging a server in kerberos.static voidserverLogin(AccumuloConfiguration acuConf, String keyTab, String principal)Performs a Kerberos login using the given Kerberos principal and keytab if they are non-null and positive length Strings.
-
-
-
Method Detail
-
serverLogin
public static void serverLogin(AccumuloConfiguration acuConf)
This method is for logging a server in kerberos. If this is used in client code, it will fail unless run as the accumulo keytab's owner. Instead, uselogin(String, String)
-
serverLogin
public static void serverLogin(AccumuloConfiguration acuConf, String keyTab, String principal)
Performs a Kerberos login using the given Kerberos principal and keytab if they are non-null and positive length Strings. This method automatically spawns a thread to renew the given ticket upon successful login usingProperty.GENERAL_KERBEROS_RENEWAL_PERIODas the renewal period. This method does nothing if eitherkeyTaborprincipalare null or of zero length.- Parameters:
acuConf- The Accumulo configurationkeyTab- The path to the Kerberos keytab fileprincipal- The Kerberos principal
-
-