org.alfresco.repo.security.authentication
Class MutableAuthenticationServiceImpl

java.lang.Object
  extended by org.alfresco.repo.security.authentication.AbstractAuthenticationService
      extended by org.alfresco.repo.security.authentication.AuthenticationServiceImpl
          extended by org.alfresco.repo.security.authentication.MutableAuthenticationServiceImpl
All Implemented Interfaces:
ActivateableBean, AuthenticationService, MutableAuthenticationService

public class MutableAuthenticationServiceImpl
extends AuthenticationServiceImpl
implements MutableAuthenticationService

The default implementation of MutableAuthenticationService.


Constructor Summary
MutableAuthenticationServiceImpl()
           
 
Method Summary
 boolean authenticationExists(java.lang.String userName)
          Check if the given authentication exists.
 void createAuthentication(java.lang.String userName, char[] password)
          Create an authentication for the given user.
 void deleteAuthentication(java.lang.String userName)
          Delete an authentication entry
 boolean getAuthenticationEnabled(java.lang.String userName)
          Is an authentication enabled or disabled?
 boolean isAuthenticationCreationAllowed()
          Determines whether authentication creation is allowed.
 boolean isAuthenticationMutable(java.lang.String userName)
          Determines whether this user's authentication may be mutated via the other methods.
 void setAuthentication(java.lang.String userName, char[] newPassword)
          Set the login information for a user (typically called by an admin user)
 void setAuthenticationDao(MutableAuthenticationDao authenticationDao)
          Sets the authentication dao.
 void setAuthenticationEnabled(java.lang.String userName, boolean enabled)
          Enable or disable an authentication entry
 void updateAuthentication(java.lang.String userName, char[] oldPassword, char[] newPassword)
          Update the login information for the user (typically called by the user)
 
Methods inherited from class org.alfresco.repo.security.authentication.AuthenticationServiceImpl
authenticate, authenticateAsGuest, clearCurrentSecurityContext, countTickets, getAllowsUserCreation, getAllowsUserDeletion, getAllowsUserPasswordChange, getCurrentTicket, getCurrentUserName, getDefaultAdministratorUserNames, getDefaultGuestUserNames, getDomain, getDomains, getDomainsThatAllowUserCreation, getDomainsThatAllowUserDeletion, getDomiansThatAllowUserPasswordChanges, getNewTicket, getTicketComponents, getUsersWithTickets, guestUserAuthenticationAllowed, invalidateTicket, invalidateTickets, invalidateUserSession, isActive, isCurrentUserTheSystemUser, setAllowsUserCreation, setAllowsUserDeletion, setAllowsUserPasswordChange, setAuthenticationComponent, setDomain, setTicketComponent, validate
 
Methods inherited from class org.alfresco.repo.security.authentication.AbstractAuthenticationService
getAllowedUsers, getMaxUsers, preAuthenticationCheck, setSysAdminParams
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.alfresco.service.cmr.security.AuthenticationService
authenticate, authenticateAsGuest, clearCurrentSecurityContext, getCurrentTicket, getCurrentUserName, getDefaultAdministratorUserNames, getDefaultGuestUserNames, getDomains, getDomainsThatAllowUserCreation, getDomainsThatAllowUserDeletion, getDomiansThatAllowUserPasswordChanges, getNewTicket, guestUserAuthenticationAllowed, invalidateTicket, invalidateUserSession, isCurrentUserTheSystemUser, validate
 

Constructor Detail

MutableAuthenticationServiceImpl

public MutableAuthenticationServiceImpl()
Method Detail

setAuthenticationDao

public void setAuthenticationDao(MutableAuthenticationDao authenticationDao)
Sets the authentication dao.

Parameters:
authenticationDao - the authentication dao

createAuthentication

public void createAuthentication(java.lang.String userName,
                                 char[] password)
                          throws org.alfresco.repo.security.authentication.AuthenticationException
Description copied from interface: MutableAuthenticationService
Create an authentication for the given user.

Specified by:
createAuthentication in interface MutableAuthenticationService
Throws:
org.alfresco.repo.security.authentication.AuthenticationException

updateAuthentication

public void updateAuthentication(java.lang.String userName,
                                 char[] oldPassword,
                                 char[] newPassword)
                          throws org.alfresco.repo.security.authentication.AuthenticationException
Description copied from interface: MutableAuthenticationService
Update the login information for the user (typically called by the user)

Specified by:
updateAuthentication in interface MutableAuthenticationService
Throws:
org.alfresco.repo.security.authentication.AuthenticationException

setAuthentication

public void setAuthentication(java.lang.String userName,
                              char[] newPassword)
                       throws org.alfresco.repo.security.authentication.AuthenticationException
Description copied from interface: MutableAuthenticationService
Set the login information for a user (typically called by an admin user)

Specified by:
setAuthentication in interface MutableAuthenticationService
Throws:
org.alfresco.repo.security.authentication.AuthenticationException

deleteAuthentication

public void deleteAuthentication(java.lang.String userName)
                          throws org.alfresco.repo.security.authentication.AuthenticationException
Description copied from interface: MutableAuthenticationService
Delete an authentication entry

Specified by:
deleteAuthentication in interface MutableAuthenticationService
Throws:
org.alfresco.repo.security.authentication.AuthenticationException

getAuthenticationEnabled

public boolean getAuthenticationEnabled(java.lang.String userName)
                                 throws org.alfresco.repo.security.authentication.AuthenticationException
Description copied from class: AuthenticationServiceImpl
Is an authentication enabled or disabled?

Specified by:
getAuthenticationEnabled in interface AuthenticationService
Overrides:
getAuthenticationEnabled in class AuthenticationServiceImpl
Throws:
org.alfresco.repo.security.authentication.AuthenticationException

setAuthenticationEnabled

public void setAuthenticationEnabled(java.lang.String userName,
                                     boolean enabled)
                              throws org.alfresco.repo.security.authentication.AuthenticationException
Description copied from interface: MutableAuthenticationService
Enable or disable an authentication entry

Specified by:
setAuthenticationEnabled in interface MutableAuthenticationService
Throws:
org.alfresco.repo.security.authentication.AuthenticationException

authenticationExists

public boolean authenticationExists(java.lang.String userName)
Description copied from class: AuthenticationServiceImpl
Check if the given authentication exists.

Specified by:
authenticationExists in interface AuthenticationService
Overrides:
authenticationExists in class AuthenticationServiceImpl
Parameters:
userName - the username
Returns:
Returns true if the authentication exists

isAuthenticationMutable

public boolean isAuthenticationMutable(java.lang.String userName)
Description copied from interface: MutableAuthenticationService
Determines whether this user's authentication may be mutated via the other methods.

Specified by:
isAuthenticationMutable in interface MutableAuthenticationService
Parameters:
userName - the user ID
Returns:
true if this user's authentication may be mutated via the other methods.

isAuthenticationCreationAllowed

public boolean isAuthenticationCreationAllowed()
Description copied from interface: MutableAuthenticationService
Determines whether authentication creation is allowed.

Specified by:
isAuthenticationCreationAllowed in interface MutableAuthenticationService
Returns:
true if authentication creation is allowed


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