org.apache.hadoop.security
Class User
java.lang.Object
org.apache.hadoop.security.User
- All Implemented Interfaces:
- java.security.Principal
public class User
- extends java.lang.Object
- implements java.security.Principal
The username of a user.
Constructor Summary |
User(java.lang.String user)
Create a new User with the given username. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
User
public User(java.lang.String user)
- Create a new
User
with the given username.
- Parameters:
user
- user name
getName
public java.lang.String getName()
- Specified by:
getName
in interface java.security.Principal
toString
public java.lang.String toString()
- Specified by:
toString
in interface java.security.Principal
- Overrides:
toString
in class java.lang.Object
hashCode
public int hashCode()
- Specified by:
hashCode
in interface java.security.Principal
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equals
in interface java.security.Principal
- Overrides:
equals
in class java.lang.Object
Copyright © 2009 The Apache Software Foundation