org.apache.james.services
Interface User

All Known Subinterfaces:
JamesUser
All Known Implementing Classes:
DefaultJamesUser, DefaultUser

public interface User

Interface for objects representing users.

Version:
$Revision: 1.9 $
Author:
Charles Benett

Method Summary
 String getUserName()
          Return the user name of this user
 boolean setPassword(String newPass)
          Sets new password from String.
 boolean verifyPassword(String pass)
          Return true if pass matches password of this user.
 

Method Detail

getUserName

public String getUserName()
Return the user name of this user

Returns:
the user name for this user

verifyPassword

public boolean verifyPassword(String pass)
Return true if pass matches password of this user.

Parameters:
pass - the password to test
Returns:
whether the password being tested is valid

setPassword

public boolean setPassword(String newPass)
Sets new password from String. No checks made on guessability of password.

Parameters:
newPass - the String that is the new password.
Returns:
true if newPass successfully added


"Copyright © 1999-2002 Apache Jakarta Project. All Rights Reserved."