org.apache.hadoop.security
Class SecurityUtil
java.lang.Object
org.apache.hadoop.security.SecurityUtil
public class SecurityUtil
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SecurityUtil
public SecurityUtil()
setPolicy
public static void setPolicy(Policy policy)
- Set the global security policy for Hadoop.
- Parameters:
policy
- Policy
used for authorization.
getPolicy
public static Policy getPolicy()
- Get the current global security policy for Hadoop.
- Returns:
- the current
Policy
getSubject
public static Subject getSubject(UserGroupInformation ugi)
- Get the
Subject
for the user identified by ugi
.
- Parameters:
ugi
- user
- Returns:
- the
Subject
for the user identified by ugi
Copyright © 2009 The Apache Software Foundation