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:
- Authentication overview
- Hibernate: class
- table="`Passwords`" lazy="true"
md5Password
private String md5Password
user
private UserData user
PasswordData
public PasswordData()
getMd5Password
public String getMd5Password()
- Get the MD5 encrypted password. It is always returned as a string
with 32 hexadecimal characters.
- Hibernate: property
- column="`md5password`" type="string" length="32" not-null="true"
setMd5Password
public void setMd5Password(String md5Password)
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)