Class SessionResource
java.lang.Object
ch.tocco.nice2.rest.core.spi.AbstractRestResource
ch.tocco.nice2.rest.core.impl.resources.SessionResource
- All Implemented Interfaces:
RestResource
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.-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class AbstractRestResource
uriInfo -
Constructor Summary
ConstructorsConstructorDescriptionSessionResource(BusinessUnitManager businessUnitManager, SessionManager sessionManager, boolean allowAdminWithoutRoles) -
Method Summary
Methods inherited from class AbstractRestResource
getPathParameter, setUriInfo, tryGetInt
-
Constructor Details
-
SessionResource
public SessionResource(BusinessUnitManager businessUnitManager, SessionManager sessionManager, @Value("${nice2.web.allowAdminWithoutRoles}") boolean allowAdminWithoutRoles)
-
-
Method Details
-
getSession
-