public class UserServiceImpl extends AbstractUserService
applicationService, authenticatedUserProvider, internalApplicationHelper, tokenAuthenticationManager, userPermissionService
Constructor and Description |
---|
UserServiceImpl(InternalApplicationHelper internalApplicationHelper,
ApplicationService applicationService,
TokenAuthenticationManager tokenAuthenticationManager,
UserPermissionService userPermissionService,
AuthenticatedUserProvider authenticatedUserProvider,
ApplicationFactory applicationFactory,
UserAuthoritiesProvider userAuthoritiesProvider) |
Modifier and Type | Method and Description |
---|---|
Principal |
resolve(String username)
Returns the user that made this request or
null if this application does not have such a user. |
boolean |
setAuthenticatedUser(String username)
Authenticate the current user by setting an appropriate authentication token in Spring Security's SecurityContext.
|
authenticate, getAuthenticatedUsername, isAdmin, isSystemAdmin, isUserInGroup
public UserServiceImpl(InternalApplicationHelper internalApplicationHelper, ApplicationService applicationService, TokenAuthenticationManager tokenAuthenticationManager, UserPermissionService userPermissionService, AuthenticatedUserProvider authenticatedUserProvider, ApplicationFactory applicationFactory, UserAuthoritiesProvider userAuthoritiesProvider)
public Principal resolve(String username)
UserService
null
if this application does not have such a user.resolve
in interface UserService
resolve
in class AbstractUserService
username
- Username of the user a consumer is making a request on behalf ofPrincipal
corresponding to the username, null
if the user does not existpublic boolean setAuthenticatedUser(String username)
UserService
setAuthenticatedUser
in interface UserService
setAuthenticatedUser
in class AbstractUserService
username
- the username of the user to authenticateCopyright © 2021 Atlassian. All rights reserved.