net.databinder.auth.data.ao
Class UserHelper
java.lang.Object
net.databinder.auth.data.ao.UserHelper
public class UserHelper
- extends java.lang.Object
Helper for UserBase, handles password hashing and virtual collection of roles (from roleString).
Client applications must extend this class to use it, because as an @Implementation it must have
a contructor matching the mapped entity interface.
|
Method Summary |
static byte[] |
getHash(java.lang.String string)
|
DataPassword |
getPassword()
|
org.apache.wicket.authorization.strategies.role.Roles |
getRoles()
|
boolean |
hasRole(java.lang.String role)
|
void |
setRoles(org.apache.wicket.authorization.strategies.role.Roles roles)
|
void |
setRoleString(java.lang.String roleString)
|
void |
update(java.security.MessageDigest digest)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UserHelper
public UserHelper(UserBase user)
getHash
public static byte[] getHash(java.lang.String string)
getPassword
public DataPassword getPassword()
setRoleString
public void setRoleString(java.lang.String roleString)
getRoles
public org.apache.wicket.authorization.strategies.role.Roles getRoles()
setRoles
public void setRoles(org.apache.wicket.authorization.strategies.role.Roles roles)
hasRole
public boolean hasRole(java.lang.String role)
update
public void update(java.security.MessageDigest digest)
Copyright © 2005-2008 Nathan Hamblen. All Rights Reserved.