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, isUserInGrouppublic UserServiceImpl(InternalApplicationHelper internalApplicationHelper, ApplicationService applicationService, TokenAuthenticationManager tokenAuthenticationManager, UserPermissionService userPermissionService, AuthenticatedUserProvider authenticatedUserProvider, ApplicationFactory applicationFactory, UserAuthoritiesProvider userAuthoritiesProvider)
public Principal resolve(String username)
UserServicenull if this application does not have such a user.resolve in interface UserServiceresolve in class AbstractUserServiceusername - 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)
UserServicesetAuthenticatedUser in interface UserServicesetAuthenticatedUser in class AbstractUserServiceusername - the username of the user to authenticateCopyright © 2024 Atlassian. All rights reserved.