Package 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
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:
- Hibernate: class
- table="`Passwords`" lazy="true"
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the crypted password.getUser()
Get the user this password is referring to.void
setCryptedPassword
(String cryptedPassword) Set the encrypted password.(package private) void
Methods inherited from class net.sf.basedb.core.data.BasicData
equals, getId, getVersion, hashCode, setId, setVersion, toString
-
Field Details
-
cryptedPassword
-
user
-
-
Constructor Details
-
PasswordData
public PasswordData()
-
-
Method Details
-
getCryptedPassword
Get the crypted password.- Since:
- 3.0
- Hibernate: property
- column="`crypted_password`" type="string" length="255" not-null="false"
-
setCryptedPassword
Set the encrypted password. The password should be encrypted withUser.encryptPassword(String)
.- Since:
- 3.0
-
getUser
Get the user this password is referring to.- Hibernate: one-to-one
- class="net.sf.basedb.core.data.UserData"
-
setUser
-