2.17.2: 2011-06-17

net.sf.basedb.core.data
Class PasswordData

java.lang.Object
  extended by net.sf.basedb.core.data.BasicData
      extended by 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"

Field Summary
private  String md5Password
           
private  UserData user
           
 
Constructor Summary
PasswordData()
           
 
Method Summary
 String getMd5Password()
          Get the MD5 encrypted password.
 UserData getUser()
          Get the user this password is referring to.
 void setMd5Password(String md5Password)
           
(package private)  void setUser(UserData user)
           
 
Methods inherited from class net.sf.basedb.core.data.BasicData
equals, getId, getVersion, hashCode, setId, setVersion, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

md5Password

private String md5Password

user

private UserData user
Constructor Detail

PasswordData

public PasswordData()
Method Detail

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)

2.17.2: 2011-06-17