Class SecurityUtil


  • public class SecurityUtil
    extends Object
    • Constructor Detail

      • SecurityUtil

        public SecurityUtil()
    • 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, use login(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 using Property.GENERAL_KERBEROS_RENEWAL_PERIOD as the renewal period. This method does nothing if either keyTab or principal are null or of zero length.
        Parameters:
        acuConf - The Accumulo configuration
        keyTab - The path to the Kerberos keytab file
        principal - The Kerberos principal
      • getServerPrincipal

        public static String getServerPrincipal​(String configuredPrincipal)
        SecurityUtil.getServerPrincipal(String, String)