Class SecurityUtil
java.lang.Object
org.apache.accumulo.server.security.SecurityUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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.
-
Constructor Details
-
SecurityUtil
public SecurityUtil()
-
-
Method Details
-
serverLogin
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
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
-
getServerPrincipal
SecurityUtil.getServerPrincipal(String, String)
-