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.SaltSourceA service provider interface to provide both acegi integration via AuthenticationDao and SaltSource and mutability support for user definitions.- Author:
- Andy Hind
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voidcreateUser(java.lang.String userName, char[] rawPassword)Create a user with the given userName and passwordvoidcreateUser(java.lang.String caseSensitiveUserName, java.lang.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(java.lang.String userName)Delete a user.booleangetAccountExpires(java.lang.String userName)Does the account expire?java.util.DategetAccountExpiryDate(java.lang.String userName)Get the date when this account expires.booleangetAccountHasExpired(java.lang.String userName)Has the account expired?booleangetAccountlocked(java.lang.String userName)Deprecated.booleangetCredentialsExpire(java.lang.String userName)Do the credentials for the user expire?java.util.DategetCredentialsExpiryDate(java.lang.String userName)Get the date when the credentials/password expire.booleangetCredentialsHaveExpired(java.lang.String userName)Have the credentials for the user expired?booleangetEnabled(java.lang.String userName)Getter for user enabledbooleangetLocked(java.lang.String userName)Check if the account is lockedjava.lang.StringgetMD4HashedPassword(java.lang.String userName)Get the MD4 password hashvoidsetAccountExpires(java.lang.String userName, boolean expires)Set if the account should expirevoidsetAccountExpiryDate(java.lang.String userName, java.util.Date exipryDate)Set the date on which the account expiresvoidsetCredentialsExpire(java.lang.String userName, boolean expires)Set if the password expires.voidsetCredentialsExpiryDate(java.lang.String userName, java.util.Date exipryDate)Set the date when credentials expire.voidsetEnabled(java.lang.String userName, boolean enabled)Enable/disable a user.voidsetLocked(java.lang.String userName, boolean locked)Set if the account is locked.voidupdateUser(java.lang.String userName, char[] rawPassword)Update a user's password.booleanuserExists(java.lang.String userName)Check is a user exists.
-
-
-
Method Detail
-
createUser
void createUser(java.lang.String userName, char[] rawPassword) throws org.alfresco.repo.security.authentication.AuthenticationExceptionCreate a user with the given userName and password- Throws:
org.alfresco.repo.security.authentication.AuthenticationException
-
createUser
void createUser(java.lang.String caseSensitiveUserName, java.lang.String hashedPassword, char[] rawPassword) throws org.alfresco.repo.security.authentication.AuthenticationExceptionCreate 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:
org.alfresco.repo.security.authentication.AuthenticationException
-
updateUser
void updateUser(java.lang.String userName, char[] rawPassword) throws org.alfresco.repo.security.authentication.AuthenticationExceptionUpdate a user's password.- Throws:
org.alfresco.repo.security.authentication.AuthenticationException
-
deleteUser
void deleteUser(java.lang.String userName) throws org.alfresco.repo.security.authentication.AuthenticationExceptionDelete a user.- Throws:
org.alfresco.repo.security.authentication.AuthenticationException
-
userExists
boolean userExists(java.lang.String userName)
Check is a user exists.
-
setEnabled
void setEnabled(java.lang.String userName, boolean enabled)Enable/disable a user.
-
getEnabled
boolean getEnabled(java.lang.String userName)
Getter for user enabled
-
setAccountExpires
void setAccountExpires(java.lang.String userName, boolean expires)Set if the account should expire
-
getAccountExpires
boolean getAccountExpires(java.lang.String userName)
Does the account expire?
-
getAccountHasExpired
boolean getAccountHasExpired(java.lang.String userName)
Has the account expired?
-
setCredentialsExpire
void setCredentialsExpire(java.lang.String userName, boolean expires)Set if the password expires.
-
getCredentialsExpire
boolean getCredentialsExpire(java.lang.String userName)
Do the credentials for the user expire?
-
getCredentialsHaveExpired
boolean getCredentialsHaveExpired(java.lang.String userName)
Have the credentials for the user expired?
-
setLocked
void setLocked(java.lang.String userName, boolean locked)Set if the account is locked.
-
getLocked
boolean getLocked(java.lang.String userName)
Check if the account is locked- Parameters:
userName- the username- Since:
- 4.0
-
getAccountlocked
boolean getAccountlocked(java.lang.String userName)
Deprecated.Is the account locked?
-
setAccountExpiryDate
void setAccountExpiryDate(java.lang.String userName, java.util.Date exipryDate)Set the date on which the account expires
-
getAccountExpiryDate
java.util.Date getAccountExpiryDate(java.lang.String userName)
Get the date when this account expires.
-
setCredentialsExpiryDate
void setCredentialsExpiryDate(java.lang.String userName, java.util.Date exipryDate)Set the date when credentials expire.
-
getCredentialsExpiryDate
java.util.Date getCredentialsExpiryDate(java.lang.String userName)
Get the date when the credentials/password expire.
-
getMD4HashedPassword
java.lang.String getMD4HashedPassword(java.lang.String userName)
Get the MD4 password hash
-
-