cmu.survey.data.users
Interface UserAuthentication

All Known Implementing Classes:
UserAuthenticationKerberos, UserAuthenticationSSH

public interface UserAuthentication


Method Summary
 java.lang.String getEmailAddress(java.lang.String userID)
          If this authentication technique knows the email address for this user, return it.
 java.lang.String getFirstName(java.lang.String userID)
          If this authentication technique knows the first name for this user, return it.
 java.lang.String getLastErrorMessage()
          This is optional, but may be used for extra text.
 java.lang.String getLastName(java.lang.String userID)
          If this authentication technique knows the last name for this user, return it.
 boolean userIsCorrect(java.lang.String userID, java.lang.String password)
           
 

Method Detail

userIsCorrect

boolean userIsCorrect(java.lang.String userID,
                      java.lang.String password)

getLastErrorMessage

java.lang.String getLastErrorMessage()
This is optional, but may be used for extra text.

Returns:

getFirstName

java.lang.String getFirstName(java.lang.String userID)
If this authentication technique knows the first name for this user, return it. If the first name is not known, return null.

Parameters:
userID -
Returns:

getLastName

java.lang.String getLastName(java.lang.String userID)
If this authentication technique knows the last name for this user, return it. If the last name is not known, return null.

Parameters:
userID -
Returns:

getEmailAddress

java.lang.String getEmailAddress(java.lang.String userID)
If this authentication technique knows the email address for this user, return it. If the email address is not known, return null.

Parameters:
userID -
Returns: