Class TokenResource
java.lang.Object
io.jans.configapi.core.rest.BaseResource
io.jans.configapi.rest.resource.auth.ConfigBaseResource
io.jans.configapi.rest.resource.auth.TokenResource
@Path("/token")
@Produces("application/json")
@Consumes("application/json")
@ApplicationScoped
public class TokenResource
extends ConfigBaseResource
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.ResponsegetClientToken(@NotNull String clientId) jakarta.ws.rs.core.ResponsegetTokenById(@NotNull String tknCde) jakarta.ws.rs.core.ResponserevokeClientToken(@NotNull String tknCde) jakarta.ws.rs.core.ResponsesearchTokenEntries(int limit, String pattern, int startIndex, String sortBy, String sortOrder, String fieldValuePair) Methods inherited from class io.jans.configapi.rest.resource.auth.ConfigBaseResource
getMaxCountMethods 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
-
Constructor Details
-
TokenResource
public TokenResource()
-
-
Method Details
-
getTokenById
@GET @Path("/tknCde/{tknCde}") public jakarta.ws.rs.core.Response getTokenById(@PathParam("tknCde") @NotNull @NotNull String tknCde) -
getClientToken
@GET @Path("/client/{clientId}") public jakarta.ws.rs.core.Response getClientToken(@PathParam("clientId") @NotNull @NotNull String clientId) -
searchTokenEntries
@GET @Path("/search") public jakarta.ws.rs.core.Response searchTokenEntries(@DefaultValue("50") @QueryParam("limit") int limit, @DefaultValue("") @QueryParam("pattern") String pattern, @DefaultValue("0") @QueryParam("startIndex") int startIndex, @DefaultValue("tknCde") @QueryParam("sortBy") String sortBy, @DefaultValue("ascending") @QueryParam("sortOrder") String sortOrder, @DefaultValue("") @QueryParam("fieldValuePair") String fieldValuePair) -
revokeClientToken
@DELETE @Path("/revoke/{tknCde}") public jakarta.ws.rs.core.Response revokeClientToken(@PathParam("tknCde") @NotNull @NotNull String tknCde)
-