Class SessionResource
- java.lang.Object
-
- io.jans.configapi.core.rest.BaseResource
-
- io.jans.configapi.rest.resource.auth.ConfigBaseResource
-
- io.jans.configapi.rest.resource.auth.SessionResource
-
@Path("/jans-auth-server/session") @Produces("application/json") @Consumes("application/json") public class SessionResource extends ConfigBaseResource
-
-
Constructor Summary
Constructors Constructor Description SessionResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description jakarta.ws.rs.core.Response
deleteSessionBySid(@NotNull String sid)
jakarta.ws.rs.core.Response
deleteUsersSession(@NotNull String userDn)
jakarta.ws.rs.core.Response
getAllSessions()
jakarta.ws.rs.core.Response
getSessionById(@NotNull String sid)
jakarta.ws.rs.core.Response
searchSessionEntries(int limit, String pattern, int startIndex, String sortBy, String sortOrder, String fieldValuePair)
-
Methods inherited from class io.jans.configapi.rest.resource.auth.ConfigBaseResource
getMaxCount
-
Methods inherited from class io.jans.configapi.core.rest.BaseResource
checkNotEmpty, checkNotEmpty, checkNotNull, checkNotNull, checkNotNull, checkResourceNotNull, createSearchRequest, findRootError, getBadRequestException, getBadRequestException, getBadRequestException, getHttpHeaders, getHttpRequest, getInternalServerException, getInternalServerException, getMissingAttributeError, getNotAcceptableException, getNotFoundError, getNotFoundError, getUriInfo, throwBadRequestException, throwBadRequestException, throwBadRequestException, throwInternalServerException, throwInternalServerException, throwInternalServerException, throwInternalServerException, throwMissingAttributeError, throwNotFoundException, throwNotFoundException
-
-
-
-
Method Detail
-
getAllSessions
@GET public jakarta.ws.rs.core.Response getAllSessions()
-
searchSessionEntries
@GET @Path("/search") public jakarta.ws.rs.core.Response searchSessionEntries(@DefaultValue("50") @QueryParam("limit") int limit, @DefaultValue("") @QueryParam("pattern") String pattern, @DefaultValue("0") @QueryParam("startIndex") int startIndex, @DefaultValue("jansId") @QueryParam("sortBy") String sortBy, @DefaultValue("ascending") @QueryParam("sortOrder") String sortOrder, @DefaultValue("") @QueryParam("fieldValuePair") String fieldValuePair)
-
getSessionById
@GET @Path("/sid/{sid}") public jakarta.ws.rs.core.Response getSessionById(@PathParam("sid") @NotNull @NotNull String sid)
-
deleteUsersSession
@DELETE @Path("/user/{userDn}") public jakarta.ws.rs.core.Response deleteUsersSession(@PathParam("userDn") @NotNull @NotNull String userDn)
-
deleteSessionBySid
@DELETE @Path("/sid/{sid}") public jakarta.ws.rs.core.Response deleteSessionBySid(@PathParam("sid") @NotNull @NotNull String sid)
-
-