@Security public class LoginServiceSecurity extends BaseServiceSecurity implements LoginService
LoginService| Constructor and Description |
|---|
LoginServiceSecurity() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkSecondaryPassword(java.lang.String password)
Validate the secondary password for the logged user
|
UserAuthVO |
getAuthenticatedUser()
Returns the currently authenticated user
|
LoginData |
getLoginData(java.lang.String channelName,
java.lang.Long deviceId,
PinLocatorVO pinLocator)
Returns the data for user login according to the given channel name
and based in the current session configuration.
|
PasswordInputDTO |
getSecondaryPasswordInput()
Returns the input for the secondary password for the logged user.
|
UserLoginResult |
login(LoginDTO params)
Creates a session for the currently authenticated user and optionally sets a timeout for it.
|
UserLoginDetailedResult |
loginUser(UserLoginDTO params)
Creates a session for a user, indicating a remote address (from the client connection) a channel and optionally
a timeout.
|
void |
logout()
Invalidates the current user session, if the current request was authenticated with a session
|
boolean |
logoutUser(java.lang.String token)
Removes the session with the given token, returning whether the sessions was actually removed
|
java.lang.String |
replaceSession()
Replaces the current session token with another one.
|
protected org.cyclos.impl.access.EntityCheck<?> |
resolveEntityCheck()
Must be implemented in order to return the
EntityCheck managed by this security component, or null if
none |
checkGuest, checkId, checkIds, checkInternalName, checkLoggedIn, checkManagesUser, checkRelatesToUser, checkScope, checkVO, checkVOs, doInitialize, getEntityCheckRegistry, getUser, initializecanManage, checkManagesUser, checkPermission, checkRelatesToUser, checkValue, clearAlreadyValidated, getBaseEntityManagerHandler, getConfiguration, getLoggedBasicUser, getLoggedUser, getProducts, getTranslatedName, getTranslatedValue, hasPermission, hasValue, inSameNetwork, inSameNetworkOrGlobal, isAdmin, isAlreadyValidated, isBroker, isGlobalAdmin, isGlobalAdminInNetwork, isGuest, isLoggedIn, isMember, isMemberOnly, isNetworkAdmin, isOperator, isRelatedToUser, isSystem, isUserManager, isUserManagerOf, message, message, permission, permission, permissionOptionalValue, permissionOptionalValue, toDate, toDateTime, validatedelete, detach, find, flush, from, getApplicationContext, getFormatter, getFormatter, getFormatter, getLogger, getRemoteAddress, getSessionData, mailContentBuilder, message, message, persist, processBatch, processBatch, refresh, remove, selectFrom, subQuery, updatepublic void checkSecondaryPassword(java.lang.String password)
LoginServicecheckSecondaryPassword in interface LoginServicepublic UserAuthVO getAuthenticatedUser() throws FrameworkException
LoginServicegetAuthenticatedUser in interface LoginServiceFrameworkExceptionpublic LoginData getLoginData(java.lang.String channelName, java.lang.Long deviceId, PinLocatorVO pinLocator)
LoginServicegetLoginData in interface LoginServicedeviceId - (Optional) A trusted device id can be given to know if it is operative, if so then a pending
device confirmation will be created (in a new read-write transaction) and its id returned in the result data.
Otherwise no confirmation will be created.pinLocator - (Optional) A device pin locator can be given to know it it is operativepublic PasswordInputDTO getSecondaryPasswordInput()
LoginServicegetSecondaryPasswordInput in interface LoginServicepublic UserLoginResult login(LoginDTO params) throws FrameworkException, LoginException, RemoteAddressBlockedException
LoginServicelogin in interface LoginServiceFrameworkExceptionLoginExceptionRemoteAddressBlockedExceptionpublic UserLoginDetailedResult loginUser(UserLoginDTO params) throws FrameworkException, LoginException, RemoteAddressBlockedException
LoginServiceloginUser in interface LoginServiceFrameworkExceptionLoginExceptionRemoteAddressBlockedExceptionpublic void logout()
throws FrameworkException
LoginServicelogout in interface LoginServiceFrameworkExceptionpublic boolean logoutUser(java.lang.String token)
throws FrameworkException
LoginServicelogoutUser in interface LoginServiceFrameworkExceptionpublic java.lang.String replaceSession()
throws FrameworkException
LoginServicereplaceSession in interface LoginServiceFrameworkExceptionprotected org.cyclos.impl.access.EntityCheck<?> resolveEntityCheck()
BaseServiceSecurityEntityCheck managed by this security component, or null if
noneresolveEntityCheck in class BaseServiceSecurity