org.apache.hadoop.security
Class User

java.lang.Object
  extended by org.apache.hadoop.security.User
All Implemented Interfaces:
Principal

public class User
extends Object
implements Principal

The username of a user.


Constructor Summary
User(String user)
          Create a new User with the given username.
 
Method Summary
 boolean equals(Object obj)
           
 String getName()
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

User

public User(String user)
Create a new User with the given username.

Parameters:
user - user name
Method Detail

getName

public String getName()
Specified by:
getName in interface Principal

toString

public String toString()
Specified by:
toString in interface Principal
Overrides:
toString in class Object

hashCode

public int hashCode()
Specified by:
hashCode in interface Principal
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Specified by:
equals in interface Principal
Overrides:
equals in class Object


Copyright © 2009 The Apache Software Foundation