net.sf.basedb.core.data
Class PasswordData
java.lang.Object
net.sf.basedb.core.data.BasicData
net.sf.basedb.core.data.PasswordData
- All Implemented Interfaces:
- IdentifiableData
public class PasswordData
- extends BasicData
This class holds the password for a user. It has a one-to-one
relationship with the UserData
class. We have enabled proxies
to avoid loading passwords unless it is necessary. The second-level
cache must never be enabled for this class.
- Version:
- 2.0
- Author:
- Nicklas
- See Also:
- Developer documentation: User authentication
- Hibernate: class
- table="`Passwords`" lazy="true"
cryptedPassword
private String cryptedPassword
user
private UserData user
PasswordData
public PasswordData()
getCryptedPassword
public String getCryptedPassword()
- Get the crypted password.
- Since:
- 3.0
- Hibernate: property
- column="`crypted_password`" type="string" length="255" not-null="false"
setCryptedPassword
public void setCryptedPassword(String cryptedPassword)
- Set the encrypted password. The password should be encrypted with
User.encryptPassword(String)
.
- Since:
- 3.0
getUser
public UserData getUser()
- Get the user this password is referring to.
- Hibernate: one-to-one
- class="net.sf.basedb.core.data.UserData"
setUser
void setUser(UserData user)