@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
|
LoginData |
getLoginData(java.lang.String channelName)
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(TimeIntervalDTO sessionTimeout)
Creates a session for the currently authenticated user and optionally sets a timeout for it.
|
InitializationData |
loginAndGetInitializationData(TimeIntervalDTO sessionTimeout)
Same as
LoginService.login(TimeIntervalDTO) but returning the InitializationData. |
UserLoginDetailedResult |
loginUser(UserLoginDTO params)
Creates a session for a user, indicating a remote address (from the client connection) a channel and optionally
a timeout.
Must be called by administrators with permissions to login other users, and is used when there is a system which relays logins to Cyclos. |
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, checkVO, checkVOs, doInitialize, getEntityCheckRegistry, getUser, initializecanManage, checkManagesUser, checkPermission, checkRelatesToUser, checkValue, clearAlreadyValidated, getAccountHandler, getAuthHandler, getBaseEntityManagerHandler, getChannelConfiguration, getConfiguration, getConversionHandler, getCustomFieldValueHandler, getEntityManagerHandler, getGroupsHandler, getLoggedBasicUser, getLoggedUser, getProducts, getProductsHandler, getReportHandler, getTranslatedName, getTranslatedValue, getUserLocatorHandler, getValidationResult, 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, getConfigurationHandler, getDataTranslationHandler, getFormatter, getFormatter, getFormatter, getLogger, getNotificationHandler, getProfileFieldHandler, getRemoteAddress, getSessionData, getTransactionHandler, getTranslationHandler, mailContentBuilder, message, message, persist, processBatch, refresh, remove, selectFrom, subQuery, updatepublic void checkSecondaryPassword(java.lang.String password)
LoginServicecheckSecondaryPassword in interface LoginServicepublic LoginData getLoginData(java.lang.String channelName)
LoginServicegetLoginData in interface LoginServicepublic PasswordInputDTO getSecondaryPasswordInput()
LoginServicegetSecondaryPasswordInput in interface LoginServicepublic UserLoginResult login(TimeIntervalDTO sessionTimeout) throws FrameworkException, LoginException, RemoteAddressBlockedException
LoginServicelogin in interface LoginServiceFrameworkExceptionLoginExceptionRemoteAddressBlockedExceptionpublic InitializationData loginAndGetInitializationData(TimeIntervalDTO sessionTimeout) throws FrameworkException
LoginServiceLoginService.login(TimeIntervalDTO) but returning the InitializationData.loginAndGetInitializationData in interface LoginServiceFrameworkExceptionpublic 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