Class AuthService
java.lang.Object
com.persequor.saga.modules.authmanager.service.AuthService
- All Implemented Interfaces:
IAuthService
-
Constructor Summary
ConstructorsConstructorDescriptionAuthService
(com.persequor.extension.user.IUserService sagaUserService, com.persequor.extension.user.IAppService appService, UserRepository userRepository) -
Method Summary
Modifier and TypeMethodDescriptionGet the currently authenticated mobile user, if any.Get the currently authenticated mobile user, or throw an exception if no user is authenticated.getUser()
Get the currently authenticated user, if any.Get the currently authenticated user, or throw an exception if no user is authenticated.
-
Constructor Details
-
AuthService
@Inject public AuthService(com.persequor.extension.user.IUserService sagaUserService, com.persequor.extension.user.IAppService appService, UserRepository userRepository)
-
-
Method Details
-
getUser
Description copied from interface:IAuthService
Get the currently authenticated user, if any.- Specified by:
getUser
in interfaceIAuthService
-
getUserOrThrow
Description copied from interface:IAuthService
Get the currently authenticated user, or throw an exception if no user is authenticated.- Specified by:
getUserOrThrow
in interfaceIAuthService
- Throws:
NotAuthenticatedException
-
getMobileUser
Description copied from interface:IAuthService
Get the currently authenticated mobile user, if any.- Specified by:
getMobileUser
in interfaceIAuthService
-
getMobileUserOrThrow
Description copied from interface:IAuthService
Get the currently authenticated mobile user, or throw an exception if no user is authenticated.- Specified by:
getMobileUserOrThrow
in interfaceIAuthService
- Throws:
ManyUsersFoundException
- if multiple users are found with the same usernameNotAuthenticatedException
-