@InterfaceAudience.Private @InterfaceStability.Evolving public class AuthUtil extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
GROUP_PREFIX
Prefix character to denote group names
|
Modifier and Type | Method and Description |
---|---|
static ScheduledChore |
getAuthChore(Configuration conf)
Checks if security is enabled and if so, launches chore for refreshing kerberos ticket.
|
static java.lang.String |
getGroupName(java.lang.String aclKey)
Returns the actual name for a group principal (stripped of the
group prefix).
|
static boolean |
isGroupPrincipal(java.lang.String name)
Returns whether or not the given name should be interpreted as a group
principal.
|
static java.lang.String |
toGroupEntry(java.lang.String name)
Returns the group entry with the group prefix for a group principal.
|
public static final java.lang.String GROUP_PREFIX
public static ScheduledChore getAuthChore(Configuration conf) throws java.io.IOException
java.io.IOException
public static boolean isGroupPrincipal(java.lang.String name)
public static java.lang.String getGroupName(java.lang.String aclKey)
public static java.lang.String toGroupEntry(java.lang.String name)