org.apache.hadoop.security
Class SecurityUtil

java.lang.Object
  extended by org.apache.hadoop.security.SecurityUtil

public class SecurityUtil
extends Object


Nested Class Summary
static class SecurityUtil.AccessControlList
          Class representing a configured access control list.
 
Constructor Summary
SecurityUtil()
           
 
Method Summary
static Policy getPolicy()
          Get the current global security policy for Hadoop.
static Subject getSubject(UserGroupInformation ugi)
          Get the Subject for the user identified by ugi.
static void setPolicy(Policy policy)
          Set the global security policy for Hadoop.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecurityUtil

public SecurityUtil()
Method Detail

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