@InterfaceAudience.Private @InterfaceStability.Evolving public class AuthUtil extends Object
Modifier and Type | Field and Description |
---|---|
static String |
GROUP_PREFIX
Prefix character to denote group names
|
Modifier and Type | Method and Description |
---|---|
static ScheduledChore |
getAuthChore(org.apache.hadoop.conf.Configuration conf)
Checks if security is enabled and if so, launches chore for refreshing kerberos ticket.
|
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 String |
toGroupEntry(String name)
Returns the group entry with the group prefix for a group principal.
|
public static final String GROUP_PREFIX
public static ScheduledChore getAuthChore(org.apache.hadoop.conf.Configuration conf) throws IOException
IOException
public static boolean isGroupPrincipal(String name)
public static String getGroupName(String aclKey)
Copyright © 2007-2016 The Apache Software Foundation. All Rights Reserved.