public class NullMutableAuthenticationDao extends Object implements MutableAuthenticationDao
Mutable authentication implementation that does nothing.
| Constructor and Description |
|---|
NullMutableAuthenticationDao() |
| Modifier and Type | Method and Description |
|---|---|
void |
createUser(String userName,
char[] rawPassword)
Create a user with the given userName and password
|
void |
createUser(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.
|
void |
deleteUser(String userName)
Delete a user.
|
boolean |
getAccountExpires(String userName)
Does the account expire?
|
Date |
getAccountExpiryDate(String userName)
Get the date when this account expires.
|
boolean |
getAccountHasExpired(String userName)
Has the account expired?
|
boolean |
getAccountlocked(String userName)
Is the account locked?
|
boolean |
getCredentialsExpire(String userName)
Do the credentials for the user expire?
|
Date |
getCredentialsExpiryDate(String userName)
Get the date when the credentials/password expire.
|
boolean |
getCredentialsHaveExpired(String userName)
Have the credentials for the user expired?
|
boolean |
getEnabled(String userName)
Getter for user enabled
|
boolean |
getLocked(String userName)
Check if the account is locked
|
String |
getMD4HashedPassword(String userName)
Get the MD4 password hash
|
Object |
getSalt(net.sf.acegisecurity.UserDetails user) |
net.sf.acegisecurity.UserDetails |
loadUserByUsername(String arg0) |
void |
setAccountExpires(String userName,
boolean expires)
Set if the account should expire
|
void |
setAccountExpiryDate(String userName,
Date exipryDate)
Set the date on which the account expires
|
void |
setCredentialsExpire(String userName,
boolean expires)
Set if the password expires.
|
void |
setCredentialsExpiryDate(String userName,
Date exipryDate)
Set the date when credentials expire.
|
void |
setEnabled(String userName,
boolean enabled)
Enable/disable a user.
|
void |
setLocked(String userName,
boolean locked)
Set if the account is locked.
|
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService) |
void |
updateUser(String userName,
char[] rawPassword)
Update a user's password.
|
boolean |
userExists(String userName)
Check is a user exists.
|
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
nodeService - ignoredpublic void createUser(String userName, char[] rawPassword) throws org.alfresco.repo.security.authentication.AuthenticationException
MutableAuthenticationDaocreateUser in interface MutableAuthenticationDaoorg.alfresco.error.AlfrescoRuntimeException - Not implementedorg.alfresco.repo.security.authentication.AuthenticationExceptionpublic void createUser(String caseSensitiveUserName, String hashedpassword, char[] rawPassword) throws org.alfresco.repo.security.authentication.AuthenticationException
MutableAuthenticationDaocreateUser in interface MutableAuthenticationDaoorg.alfresco.error.AlfrescoRuntimeException - Not implementedorg.alfresco.repo.security.authentication.AuthenticationExceptionpublic void updateUser(String userName, char[] rawPassword) throws org.alfresco.repo.security.authentication.AuthenticationException
MutableAuthenticationDaoupdateUser in interface MutableAuthenticationDaoorg.alfresco.error.AlfrescoRuntimeException - Not implementedorg.alfresco.repo.security.authentication.AuthenticationExceptionpublic void deleteUser(String userName) throws org.alfresco.repo.security.authentication.AuthenticationException
MutableAuthenticationDaodeleteUser in interface MutableAuthenticationDaoorg.alfresco.error.AlfrescoRuntimeException - Not implementedorg.alfresco.repo.security.authentication.AuthenticationExceptionpublic boolean userExists(String userName)
userExists in interface MutableAuthenticationDaopublic void setEnabled(String userName, boolean enabled)
MutableAuthenticationDaosetEnabled in interface MutableAuthenticationDaoorg.alfresco.error.AlfrescoRuntimeException - Not implementedpublic boolean getEnabled(String userName)
MutableAuthenticationDaogetEnabled in interface MutableAuthenticationDaoorg.alfresco.error.AlfrescoRuntimeException - Not implementedpublic void setAccountExpires(String userName, boolean expires)
MutableAuthenticationDaosetAccountExpires in interface MutableAuthenticationDaoorg.alfresco.error.AlfrescoRuntimeException - Not implementedpublic boolean getAccountExpires(String userName)
MutableAuthenticationDaogetAccountExpires in interface MutableAuthenticationDaoorg.alfresco.error.AlfrescoRuntimeException - Not implementedpublic boolean getAccountHasExpired(String userName)
MutableAuthenticationDaogetAccountHasExpired in interface MutableAuthenticationDaoorg.alfresco.error.AlfrescoRuntimeException - Not implementedpublic void setCredentialsExpire(String userName, boolean expires)
MutableAuthenticationDaosetCredentialsExpire in interface MutableAuthenticationDaoorg.alfresco.error.AlfrescoRuntimeException - Not implementedpublic boolean getCredentialsExpire(String userName)
MutableAuthenticationDaogetCredentialsExpire in interface MutableAuthenticationDaoorg.alfresco.error.AlfrescoRuntimeException - Not implementedpublic boolean getCredentialsHaveExpired(String userName)
MutableAuthenticationDaogetCredentialsHaveExpired in interface MutableAuthenticationDaoorg.alfresco.error.AlfrescoRuntimeException - Not implementedpublic void setLocked(String userName, boolean locked)
MutableAuthenticationDaosetLocked in interface MutableAuthenticationDaoorg.alfresco.error.AlfrescoRuntimeException - Not implementedpublic boolean getLocked(String userName)
MutableAuthenticationDaogetLocked in interface MutableAuthenticationDaouserName - the usernameorg.alfresco.error.AlfrescoRuntimeException - Not implementedpublic boolean getAccountlocked(String userName)
MutableAuthenticationDaogetAccountlocked in interface MutableAuthenticationDaoorg.alfresco.error.AlfrescoRuntimeException - Not implementedpublic void setAccountExpiryDate(String userName, Date exipryDate)
MutableAuthenticationDaosetAccountExpiryDate in interface MutableAuthenticationDaoorg.alfresco.error.AlfrescoRuntimeException - Not implementedpublic Date getAccountExpiryDate(String userName)
MutableAuthenticationDaogetAccountExpiryDate in interface MutableAuthenticationDaoorg.alfresco.error.AlfrescoRuntimeException - Not implementedpublic void setCredentialsExpiryDate(String userName, Date exipryDate)
MutableAuthenticationDaosetCredentialsExpiryDate in interface MutableAuthenticationDaoorg.alfresco.error.AlfrescoRuntimeException - Not implementedpublic Date getCredentialsExpiryDate(String userName)
MutableAuthenticationDaogetCredentialsExpiryDate in interface MutableAuthenticationDaoorg.alfresco.error.AlfrescoRuntimeException - Not implementedpublic String getMD4HashedPassword(String userName)
MutableAuthenticationDaogetMD4HashedPassword in interface MutableAuthenticationDaoorg.alfresco.error.AlfrescoRuntimeException - Not implementedpublic net.sf.acegisecurity.UserDetails loadUserByUsername(String arg0) throws net.sf.acegisecurity.providers.dao.UsernameNotFoundException, org.springframework.dao.DataAccessException
loadUserByUsername in interface net.sf.acegisecurity.providers.dao.AuthenticationDaoorg.alfresco.error.AlfrescoRuntimeException - Not implementednet.sf.acegisecurity.providers.dao.UsernameNotFoundExceptionorg.springframework.dao.DataAccessExceptionpublic Object getSalt(net.sf.acegisecurity.UserDetails user)
getSalt in interface net.sf.acegisecurity.providers.dao.SaltSourceorg.alfresco.error.AlfrescoRuntimeException - Not implementedCopyright © 2005–2018 Alfresco Software. All rights reserved.