Class AbstractAuthenService<U extends CommonUserProfile<?>,T extends CommonLoginSession<U>>
java.lang.Object
tech.corefinance.userprofile.common.service.impl.AbstractAuthenService<U,T>
- All Implemented Interfaces:
CommonAuthenService<U,T>
@Service
@Transactional
@ConditionalOnProperty(prefix="tech.corefinance.app.userprofile",
name="common-role-service",
havingValue="true",
matchIfMissing=true)
public abstract class AbstractAuthenService<U extends CommonUserProfile<?>,T extends CommonLoginSession<U>>
extends Object
implements CommonAuthenService<U,T>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract TvoidinvalidateLogin(String loginId) protected abstract intinvalidateOldLogins(String verifyKey) booleanisValidToken(String loginId) tech.corefinance.common.dto.LoginDtologin(String account, String password, String deviceId, String clientAppId, tech.corefinance.common.enums.AppPlatform appPlatform, tech.corefinance.common.model.AppVersion appVersion, jakarta.servlet.http.HttpServletRequest request) tech.corefinance.common.dto.LoginDtorefreshToken(String loginId, String refreshToken, String deviceId, String clientAppId, tech.corefinance.common.enums.AppPlatform appPlatform, tech.corefinance.common.model.AppVersion appVersion, jakarta.servlet.http.HttpServletRequest request) voidunlockUser(String account)
-
Constructor Details
-
AbstractAuthenService
public AbstractAuthenService()
-
-
Method Details
-
createEmptySession
-
invalidateOldLogins
-
login
@Transactional(noRollbackFor=tech.corefinance.common.ex.ServiceProcessingException.class) public tech.corefinance.common.dto.LoginDto login(String account, String password, String deviceId, String clientAppId, tech.corefinance.common.enums.AppPlatform appPlatform, tech.corefinance.common.model.AppVersion appVersion, jakarta.servlet.http.HttpServletRequest request) throws Exception - Specified by:
loginin interfaceCommonAuthenService<U extends CommonUserProfile<?>,T extends CommonLoginSession<U>> - Throws:
Exception
-
unlockUser
- Specified by:
unlockUserin interfaceCommonAuthenService<U extends CommonUserProfile<?>,T extends CommonLoginSession<U>>
-
refreshToken
public tech.corefinance.common.dto.LoginDto refreshToken(String loginId, String refreshToken, String deviceId, String clientAppId, tech.corefinance.common.enums.AppPlatform appPlatform, tech.corefinance.common.model.AppVersion appVersion, jakarta.servlet.http.HttpServletRequest request) throws UnknownHostException, com.fasterxml.jackson.core.JsonProcessingException - Specified by:
refreshTokenin interfaceCommonAuthenService<U extends CommonUserProfile<?>,T extends CommonLoginSession<U>> - Throws:
UnknownHostExceptioncom.fasterxml.jackson.core.JsonProcessingException
-
isValidToken
- Specified by:
isValidTokenin interfaceCommonAuthenService<U extends CommonUserProfile<?>,T extends CommonLoginSession<U>>
-
invalidateLogin
- Specified by:
invalidateLoginin interfaceCommonAuthenService<U extends CommonUserProfile<?>,T extends CommonLoginSession<U>>
-