| 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
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.
|
void checkSecondaryPassword(java.lang.String password)
throws FrameworkException
FrameworkExceptionLoginData getLoginData(@NotNull java.lang.String channelName)
PasswordInputDTO getSecondaryPasswordInput()
UserLoginResult login(TimeIntervalDTO sessionTimeout) throws FrameworkException, LoginException, RemoteAddressBlockedException
InitializationData loginAndGetInitializationData(TimeIntervalDTO sessionTimeout) throws FrameworkException
login(TimeIntervalDTO) but returning the InitializationData.FrameworkExceptionUserLoginDetailedResult loginUser(@NotNull UserLoginDTO params) throws FrameworkException, LoginException, RemoteAddressBlockedException
void logout()
throws FrameworkException
FrameworkExceptionboolean logoutUser(@NotNull
java.lang.String token)
throws FrameworkException
FrameworkExceptionjava.lang.String replaceSession()
throws FrameworkException
FrameworkException