Last update: 2011-06-23

org.proteios.core.data
Class PasswordData

java.lang.Object
  extended by org.proteios.core.data.BasicData
      extended by org.proteios.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"

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)
           
 
Methods inherited from class org.proteios.core.data.BasicData
equals, getId, getVersion, hashCode, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

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="org.proteios.core.data.UserData"

Last update: 2011-06-23