org.omus.core
Class AuthenticationData

java.lang.Object
  |
  +--org.omus.core.AuthenticationData
Direct Known Subclasses:
RegistrationData

public class AuthenticationData
extends java.lang.Object

Contains authentication data of a user. Gets passed to the prepareLogin method in org.omus.ext.LoginExtension.


Method Summary
 java.lang.String getErrorCode()
          Returns the error code or null if none was specified yet.
 java.lang.String getPassword()
          Returns the password of the user.
 java.lang.String getUsername()
          Returns the name of the user.
 void setErrorCode(java.lang.String newCode)
          Sets the error code to the specified string.
 void setPassword(java.lang.String newPassword)
          Sets the password of the user to the specified string.
 void setUsername(java.lang.String newName)
          Sets the name of the user to the specified string.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getUsername

public java.lang.String getUsername()
Returns the name of the user.

getPassword

public java.lang.String getPassword()
Returns the password of the user.

getErrorCode

public java.lang.String getErrorCode()
Returns the error code or null if none was specified yet.

setUsername

public void setUsername(java.lang.String newName)
Sets the name of the user to the specified string.

setPassword

public void setPassword(java.lang.String newPassword)
Sets the password of the user to the specified string.

setErrorCode

public void setErrorCode(java.lang.String newCode)
Sets the error code to the specified string. The code will be prefixed with "cld-" automatically to avoid confusion with built-in error codes. It will be sent to the client if the prepareLogin method in org.omus.ext.LoginExtension returns false so that the login will be aborted.