org.apache.hadoop.hbase
Class AuthUtil

java.lang.Object
  extended by org.apache.hadoop.hbase.AuthUtil

@InterfaceAudience.Public
@InterfaceStability.Evolving
public class AuthUtil
extends Object

Utility methods for helping with security tasks.


Field Summary
static String GROUP_PREFIX
          Prefix character to denote group names
 
Method Summary
static String getGroupName(String aclKey)
          Returns the actual name for a group principal (stripped of the group prefix).
static boolean isGroupPrincipal(String name)
          Returns whether or not the given name should be interpreted as a group principal.
static void launchAuthChore(org.apache.hadoop.conf.Configuration conf)
          Checks if security is enabled and if so, launches chore for refreshing kerberos ticket.
static String toGroupEntry(String name)
          Returns the group entry with the group prefix for a group principal.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GROUP_PREFIX

public static final String GROUP_PREFIX
Prefix character to denote group names

See Also:
Constant Field Values
Method Detail

launchAuthChore

public static void launchAuthChore(org.apache.hadoop.conf.Configuration conf)
                            throws IOException
Checks if security is enabled and if so, launches chore for refreshing kerberos ticket.

Throws:
IOException

isGroupPrincipal

public static boolean isGroupPrincipal(String name)
Returns whether or not the given name should be interpreted as a group principal. Currently this simply checks if the name starts with the special group prefix character ("@").


getGroupName

public static String getGroupName(String aclKey)
Returns the actual name for a group principal (stripped of the group prefix).


toGroupEntry

public static String toGroupEntry(String name)
Returns the group entry with the group prefix for a group principal.



Copyright © 2007-2015 The Apache Software Foundation. All Rights Reserved.