Class 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.core.rest.BaseResource

        FIELD_VALUE_SEPARATOR, MISSING_ATTRIBUTE_CODE, MISSING_ATTRIBUTE_MESSAGE, TOKEN_DELIMITER
    • 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, String fieldValuePair)  
      jakarta.ws.rs.core.Response patchClient​(@NotNull String inum, @NotNull String jsonPatchString)  
      jakarta.ws.rs.core.Response updateClient​(@Valid io.jans.as.common.model.registration.Client client)  
      • 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
    • Constructor Detail

      • ClientsResource

        public ClientsResource()
    • Method Detail

      • getOpenIdConnectClients

        @GET
        public jakarta.ws.rs.core.Response getOpenIdConnectClients​(@DefaultValue("50") @QueryParam("limit")
                                                                   int limit,
                                                                   @DefaultValue("") @QueryParam("pattern")
                                                                   String pattern,
                                                                   @DefaultValue("0") @QueryParam("startIndex")
                                                                   int startIndex,
                                                                   @DefaultValue("inum") @QueryParam("sortBy")
                                                                   String sortBy,
                                                                   @DefaultValue("ascending") @QueryParam("sortOrder")
                                                                   String sortOrder,
                                                                   @DefaultValue("") @QueryParam("fieldValuePair")
                                                                   String fieldValuePair)
                                                            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 jsonPatchString)
                                                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)