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: 365582 $

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

Method Detail

getUserName

java.lang.String getUserName()
Return the user name of this user

Returns:
the user name for this user

verifyPassword

boolean verifyPassword(java.lang.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

boolean setPassword(java.lang.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 © 2002-2007 The Apache Software Foundation. All Rights Reserved.