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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    jakarta.ws.rs.core.Response
    getClientToken(@NotNull String clientId)
     
    jakarta.ws.rs.core.Response
    getTokenById(@NotNull String tknCde)
     
    jakarta.ws.rs.core.Response
    revokeClientToken(@NotNull String tknCde)
     
    jakarta.ws.rs.core.Response
    searchTokenEntries(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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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)