Class ClientsResource
- java.lang.Object
-
- io.jans.configapi.core.rest.BaseResource
-
- io.jans.configapi.rest.resource.auth.ConfigBaseResource
-
- io.jans.configapi.rest.resource.auth.ClientsResource
-
@Path("/openid/clients") @Produces("application/json") @Consumes("application/json") @ApplicationScoped public class ClientsResource extends ConfigBaseResource
- Author:
- Mougang T.Gasmyr
-
-
Field Summary
-
Fields inherited from class io.jans.configapi.rest.resource.auth.ConfigBaseResource
DEFAULT_LIST_SIZE, DEFAULT_LIST_START_INDEX, DEFAULT_MAX_COUNT, READ_ACCESS, WRITE_ACCESS
-
-
Constructor Summary
Constructors Constructor Description ClientsResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description jakarta.ws.rs.core.Response
createOpenIdConnect(@Valid io.jans.as.common.model.registration.Client client)
jakarta.ws.rs.core.Response
deleteClient(@NotNull String inum)
jakarta.ws.rs.core.Response
getOpenIdClientByInum(@NotNull String inum)
jakarta.ws.rs.core.Response
getOpenIdConnectClients(int limit, String pattern, int startIndex, String sortBy, String sortOrder)
jakarta.ws.rs.core.Response
patchClient(@NotNull String inum, @NotNull String pathString)
jakarta.ws.rs.core.Response
updateClient(@Valid io.jans.as.common.model.registration.Client client)
-
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, checkResourceNotNull, createSearchRequest, getBadRequestException, getInternalServerException, getMissingAttributeError, getNotAcceptableException, getNotFoundError, thorwBadRequestException, thorwInternalServerException, throwMissingAttributeError
-
-
-
-
Method Detail
-
getOpenIdConnectClients
@GET public jakarta.ws.rs.core.Response getOpenIdConnectClients(@DefaultValue("50") @QueryParam("limit") int limit, @DefaultValue("") @QueryParam("pattern") String pattern, @DefaultValue("1") @QueryParam("startIndex") int startIndex, @QueryParam("sortBy") String sortBy, @QueryParam("sortOrder") String sortOrder) throws io.jans.util.security.StringEncrypter.EncryptionException
- Throws:
io.jans.util.security.StringEncrypter.EncryptionException
-
getOpenIdClientByInum
@GET @Path("{inum}") public jakarta.ws.rs.core.Response getOpenIdClientByInum(@PathParam("inum") @NotNull @NotNull String inum)
-
createOpenIdConnect
@POST public jakarta.ws.rs.core.Response createOpenIdConnect(@Valid @Valid io.jans.as.common.model.registration.Client client) throws io.jans.util.security.StringEncrypter.EncryptionException
- Throws:
io.jans.util.security.StringEncrypter.EncryptionException
-
updateClient
@PUT public jakarta.ws.rs.core.Response updateClient(@Valid @Valid io.jans.as.common.model.registration.Client client) throws io.jans.util.security.StringEncrypter.EncryptionException
- Throws:
io.jans.util.security.StringEncrypter.EncryptionException
-
patchClient
@PATCH @Consumes("application/json-patch+json") @Path("{inum}") public jakarta.ws.rs.core.Response patchClient(@PathParam("inum") @NotNull @NotNull String inum, @NotNull @NotNull String pathString) throws com.github.fge.jsonpatch.JsonPatchException, IOException
- Throws:
com.github.fge.jsonpatch.JsonPatchException
IOException
-
deleteClient
@DELETE @Path("{inum}") public jakarta.ws.rs.core.Response deleteClient(@PathParam("inum") @NotNull @NotNull String inum)
-
-