org.squashtest.tm.service.security
Interface AdministratorAuthenticationService

All Superinterfaces:
UserAuthenticationService
All Known Implementing Classes:
AdministratorAuthenticationServiceImpl

public interface AdministratorAuthenticationService
extends UserAuthenticationService

Configuration should point to an LDAP service or an Squash ad-hoc service if no LDAP is available. Security should ensure that only the current user or an ADMIN authority can actually perform the requested operation, safe for the modification of a password (only the user may access it).

Author:
bsiri

Method Summary
 void activateAccount(String login)
           
 void createNewUserPassword(String login, String plainTextPassword, boolean enabled, boolean accountNonExpired, boolean credentialsNonExpired, boolean accountNonLocked, Collection<org.springframework.security.core.GrantedAuthority> autorities)
           
 void createUser(org.springframework.security.core.userdetails.UserDetails userDetails)
           
 void deactivateAccount(String login)
           
 void deleteAccount(String login)
           
 void resetUserPassword(String login, String plainTextPassword)
           
 boolean userExists(String login)
           
 
Methods inherited from interface org.squashtest.tm.service.security.UserAuthenticationService
canModifyUser, changeAuthenticatedUserPassword, changeUserlogin
 

Method Detail

createNewUserPassword

void createNewUserPassword(String login,
                           String plainTextPassword,
                           boolean enabled,
                           boolean accountNonExpired,
                           boolean credentialsNonExpired,
                           boolean accountNonLocked,
                           Collection<org.springframework.security.core.GrantedAuthority> autorities)

createUser

void createUser(org.springframework.security.core.userdetails.UserDetails userDetails)

resetUserPassword

void resetUserPassword(String login,
                       String plainTextPassword)

deactivateAccount

void deactivateAccount(String login)

activateAccount

void activateAccount(String login)

deleteAccount

void deleteAccount(String login)

userExists

boolean userExists(String login)
Parameters:
login -
Returns:
true if there is authentication data for the given login.


Copyright © 2010-2013 Henix, henix.fr. All Rights Reserved.