net.databinder.auth.data.hib
Class BasicPassword
java.lang.Object
net.databinder.auth.data.hib.BasicPassword
- All Implemented Interfaces:
- java.io.Serializable, DataPassword
public class BasicPassword
- extends java.lang.Object
- implements DataPassword, java.io.Serializable
Simple, optional implementation of DataPassword. Maps as an embedded
property to the single field "passwordHash".
- Author:
- Nathan Hamblen
- See Also:
- Serialized Form
|
Method Summary |
void |
change(java.lang.String password)
Change this object's password to the given one. |
boolean |
matches(java.lang.String password)
|
void |
update(java.security.MessageDigest md)
Update digest with password, to bind it to the cookie token. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BasicPassword
public BasicPassword()
BasicPassword
public BasicPassword(java.lang.String password)
change
public void change(java.lang.String password)
- Description copied from interface:
DataPassword
- Change this object's password to the given one.
- Specified by:
change in interface DataPassword
update
public void update(java.security.MessageDigest md)
- Description copied from interface:
DataPassword
- Update digest with password, to bind it to the cookie token.
- Specified by:
update in interface DataPassword
matches
public boolean matches(java.lang.String password)
- Specified by:
matches in interface DataPassword
- Returns:
- true if the given password matches this object's
Copyright © 2005-2008 Nathan Hamblen. All Rights Reserved.