Package org.ctan.site.domain.account
Class User
java.lang.Object
org.ctan.site.domain.account.User
The domain class
User contains the description of a user account
on the site.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classThe classCtanPrincipalcontains the transport object for authentication.static classThe classPrintableUsercontains the printable attributes of a user. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe methodacceptprovides means to check that the user is authenticated.The methodgetPrincipalprovides means to get the principal.The methodgetPrintableprovides means to get the printable attributes of the user.voidsetHashedPassword(String passwd) The methodsetHashedPasswordprovides means to set the password.toString()
-
Constructor Details
-
User
public User()
-
-
Method Details
-
accept
The methodacceptprovides means to check that the user is authenticated.- Parameters:
passwd- the password- Returns:
trueiff the password is valid
-
getPrincipal
The methodgetPrincipalprovides means to get the principal.- Returns:
- the principal
-
getPrintable
The methodgetPrintableprovides means to get the printable attributes of the user.- Returns:
- the user attributes
-
setHashedPassword
The methodsetHashedPasswordprovides means to set the password. Internally the password is hashed and the hash is stored.- Parameters:
passwd- the clear-text password
-
toString
-