Package org.cyclos.impl.access
Interface LoginServiceLocal
-
- All Superinterfaces:
LoginService,Service
- All Known Implementing Classes:
LoginServiceImpl
public interface LoginServiceLocal extends LoginService
Local interface forLoginService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Pair<Session,IdentityProviderNotLinkReason>doLogin(TimeInterval timeout, String deviceConfirmationId, Long deviceId, String hmac, String identityProviderRequestId, String fcmDeviceToken)Logs in the current user.
If a device confirmation id, device id and HMAC are given then the following happen: For authenticated users: If valid a trusted session will be created which means higher payment limits could be applied, the confirmation password could be skipped (there is a setting in the channel configuration), etc.SessiondoLoginUser(UserLoginDTO params)Logs in the given userDateRangegetFirstAndLastLogin(BasicUser user)Returns the first and last login of the given user, or null if never logged in beforeLoginDatagetLoginData(Channel channel, Long deviceId, PinLocatorVO pinLocator)Returns the data for user login according to the given channel.
Optionally, a trusted device id and pin locator can be given to know if they already exist and are active.voidremoveAllLogs(BasicUser basicUser)Removes all login history logs for the given user-
Methods inherited from interface org.cyclos.services.access.LoginService
checkSecondaryPassword, getAuthenticatedUser, getLoginData, getSecondaryPasswordInput, login, loginUser, logout, logoutUser, replaceSession
-
-
-
-
Method Detail
-
doLogin
Pair<Session,IdentityProviderNotLinkReason> doLogin(TimeInterval timeout, String deviceConfirmationId, Long deviceId, String hmac, String identityProviderRequestId, String fcmDeviceToken)
Logs in the current user.
If a device confirmation id, device id and HMAC are given then the following happen:- For authenticated users: If valid a trusted session will be created which means higher payment limits could be applied, the confirmation password could be skipped (there is a setting in the channel configuration), etc. Otherwise, the session (silently) won't be trusted and the confirmation password will be required according to the channel configuration.
- For guests: means a login with a trusted device is performing. For this case the session will be also trusted
if the parameters are valid. Otherwise a
LoginExceptionwill be thrown.
-
doLoginUser
Session doLoginUser(UserLoginDTO params)
Logs in the given user
-
getFirstAndLastLogin
DateRange getFirstAndLastLogin(BasicUser user)
Returns the first and last login of the given user, or null if never logged in before
-
getLoginData
LoginData getLoginData(Channel channel, Long deviceId, PinLocatorVO pinLocator)
Returns the data for user login according to the given channel.
Optionally, a trusted device id and pin locator can be given to know if they already exist and are active.
-
removeAllLogs
void removeAllLogs(BasicUser basicUser)
Removes all login history logs for the given user
-
-