Class LoginServlet

java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
ch.tocco.nice2.web.core.api.auth.SecureServlet
ch.tocco.nice2.web.core.impl.servlet.req.LoginServlet
All Implemented Interfaces:
Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

@Component public class LoginServlet extends SecureServlet
Returns a JSON object containing the following information: - success (true, if a known principal currently is logged in (not anonymous)) - timeout (how long the session is valid (in minutes)) This servlet actually doesn't refresh the session. This is done in the AuthenticationFilter. This servlet only returns the information. If the current user is anonymous and no credentials have been submitted, a basic authentication challenge is sent to the client.
See Also: