@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
|
private static org.apache.commons.logging.Log |
LOG |
Modifier | Constructor and Description |
---|---|
private |
AuthUtil() |
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.
|
private static final org.apache.commons.logging.Log LOG
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–2019 The Apache Software Foundation. All rights reserved.