Class SessionResource

java.lang.Object
ch.tocco.nice2.rest.core.spi.AbstractRestResource
ch.tocco.nice2.rest.core.impl.resources.SessionResource
All Implemented Interfaces:
RestResource

@Path("/session") public class SessionResource extends AbstractRestResource
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 resource actually doesn't refresh the session. This is done in the AuthenticationFilter. This resource only returns the information.
  • Constructor Details

    • SessionResource

      public SessionResource(BusinessUnitManager businessUnitManager, SessionManager sessionManager, @Value("${nice2.web.allowAdminWithoutRoles}") boolean allowAdminWithoutRoles)
  • Method Details