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 String
getServerPrincipal(String configuredPrincipal)
SecurityUtil.getServerPrincipal(String, String)
static void
serverLogin(AccumuloConfiguration acuConf)
This method is for logging a server in kerberos.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.
-
-
-
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_PERIOD
as the renewal period. This method does nothing if eitherkeyTab
orprincipal
are null or of zero length.- Parameters:
acuConf
- The Accumulo configurationkeyTab
- The path to the Kerberos keytab fileprincipal
- The Kerberos principal
-
-