org.alfresco.repo.security.authentication
Interface MutableAuthenticationDao

All Superinterfaces:
net.sf.acegisecurity.providers.dao.AuthenticationDao, net.sf.acegisecurity.providers.dao.SaltSource
All Known Implementing Classes:
DefaultMutableAuthenticationDao, NullMutableAuthenticationDao, 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.


Method Summary
 void createUser(java.lang.String userName, char[] rawPassword)
          Create a user with the given userName and password
 void deleteUser(java.lang.String userName)
          Delete a user.
 boolean getAccountExpires(java.lang.String userName)
          Does the account expire?
 java.util.Date getAccountExpiryDate(java.lang.String userName)
          Get the date when this account expires.
 boolean getAccountHasExpired(java.lang.String userName)
          Has the account expired?
 boolean getAccountlocked(java.lang.String userName)
          Deprecated. Use MutableAuthenticationDao.getLocked(String)
 boolean getCredentialsExpire(java.lang.String userName)
          Do the credentials for the user expire?
 java.util.Date getCredentialsExpiryDate(java.lang.String userName)
          Get the date when the credentials/password expire.
 boolean getCredentialsHaveExpired(java.lang.String userName)
          Have the credentials for the user expired?
 boolean getEnabled(java.lang.String userName)
          Getter for user enabled
 boolean getLocked(java.lang.String userName)
          Check if the account is locked
 java.lang.String getMD4HashedPassword(java.lang.String userName)
          Get the MD4 password hash
 void setAccountExpires(java.lang.String userName, boolean expires)
          Set if the account should expire
 void setAccountExpiryDate(java.lang.String userName, java.util.Date exipryDate)
          Set the date on which the account expires
 void setCredentialsExpire(java.lang.String userName, boolean expires)
          Set if the password expires.
 void setCredentialsExpiryDate(java.lang.String userName, java.util.Date exipryDate)
          Set the date when credentials expire.
 void setEnabled(java.lang.String userName, boolean enabled)
          Enable/disable a user.
 void setLocked(java.lang.String userName, boolean locked)
          Set if the account is locked.
 void updateUser(java.lang.String userName, char[] rawPassword)
          Update a user's password.
 boolean userExists(java.lang.String userName)
          Check is a user exists.
 
Methods inherited from interface net.sf.acegisecurity.providers.dao.AuthenticationDao
loadUserByUsername
 
Methods inherited from interface net.sf.acegisecurity.providers.dao.SaltSource
getSalt
 

Method Detail

createUser

void createUser(java.lang.String userName,
                char[] rawPassword)
                throws org.alfresco.repo.security.authentication.AuthenticationException
Create a user with the given userName and password

Throws:
org.alfresco.repo.security.authentication.AuthenticationException

updateUser

void updateUser(java.lang.String userName,
                char[] rawPassword)
                throws org.alfresco.repo.security.authentication.AuthenticationException
Update a user's password.

Throws:
org.alfresco.repo.security.authentication.AuthenticationException

deleteUser

void deleteUser(java.lang.String userName)
                throws org.alfresco.repo.security.authentication.AuthenticationException
Delete 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. Use MutableAuthenticationDao.getLocked(String)

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



Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.