Interface MutableAuthenticationDao
- All Superinterfaces:
net.sf.acegisecurity.providers.dao.AuthenticationDao,net.sf.acegisecurity.providers.dao.SaltSource
- All Known Implementing Classes:
DefaultMutableAuthenticationDao,RepositoryAuthenticationDao
public interface MutableAuthenticationDao
extends net.sf.acegisecurity.providers.dao.AuthenticationDao, net.sf.acegisecurity.providers.dao.SaltSource
A service provider interface to provide both acegi integration via AuthenticationDao and SaltSource and mutability support for user definitions.
- Author:
- Andy Hind
-
Method Summary
Modifier and TypeMethodDescriptionvoidcreateUser(String userName, char[] rawPassword) Create a user with the given userName and passwordvoidcreateUser(String caseSensitiveUserName, String hashedPassword, char[] rawPassword) Create a user with the given userName and password hash If hashedPassword is passed in then this is used, otherwise it falls back to using the rawPassword.voiddeleteUser(String userName) Delete a user.booleangetAccountExpires(String userName) Does the account expire?getAccountExpiryDate(String userName) Get the date when this account expires.booleangetAccountHasExpired(String userName) Has the account expired?booleangetAccountlocked(String userName) Deprecated.booleangetCredentialsExpire(String userName) Do the credentials for the user expire?getCredentialsExpiryDate(String userName) Get the date when the credentials/password expire.booleangetCredentialsHaveExpired(String userName) Have the credentials for the user expired?booleangetEnabled(String userName) Getter for user enabledbooleanCheck if the account is lockedgetMD4HashedPassword(String userName) Get the MD4 password hashvoidsetAccountExpires(String userName, boolean expires) Set if the account should expirevoidsetAccountExpiryDate(String userName, Date exipryDate) Set the date on which the account expiresvoidsetCredentialsExpire(String userName, boolean expires) Set if the password expires.voidsetCredentialsExpiryDate(String userName, Date exipryDate) Set the date when credentials expire.voidsetEnabled(String userName, boolean enabled) Enable/disable a user.voidSet if the account is locked.voidupdateUser(String userName, char[] rawPassword) Update a user's password.booleanuserExists(String userName) Check is a user exists.Methods inherited from interface net.sf.acegisecurity.providers.dao.AuthenticationDao
loadUserByUsernameMethods inherited from interface net.sf.acegisecurity.providers.dao.SaltSource
getSalt
-
Method Details
-
createUser
Create a user with the given userName and password- Throws:
AuthenticationException
-
createUser
void createUser(String caseSensitiveUserName, String hashedPassword, char[] rawPassword) throws AuthenticationException Create a user with the given userName and password hash If hashedPassword is passed in then this is used, otherwise it falls back to using the rawPassword. It is assumed the hashed password has been encoded using system.preferred.password.encoding and doesn't use its own salt.- Throws:
AuthenticationException
-
updateUser
Update a user's password.- Throws:
AuthenticationException
-
deleteUser
Delete a user.- Throws:
AuthenticationException
-
userExists
Check is a user exists. -
setEnabled
Enable/disable a user. -
getEnabled
Getter for user enabled -
setAccountExpires
Set if the account should expire -
getAccountExpires
Does the account expire? -
getAccountHasExpired
Has the account expired? -
setCredentialsExpire
Set if the password expires. -
getCredentialsExpire
Do the credentials for the user expire? -
getCredentialsHaveExpired
Have the credentials for the user expired? -
setLocked
Set if the account is locked. -
getLocked
Check if the account is locked- Parameters:
userName- the username- Since:
- 4.0
-
getAccountlocked
Deprecated.Is the account locked? -
setAccountExpiryDate
Set the date on which the account expires -
getAccountExpiryDate
Get the date when this account expires. -
setCredentialsExpiryDate
Set the date when credentials expire. -
getCredentialsExpiryDate
Get the date when the credentials/password expire. -
getMD4HashedPassword
Get the MD4 password hash
-
getLocked(String)