Class ScopesResource


  • @Path("/scopes")
    @Produces("application/json")
    @Consumes("application/json")
    public class ScopesResource
    extends ConfigBaseResource
    Configures both OpenID Connect and UMA scopes.
    Author:
    Mougang T.Gasmyr
    • Constructor Detail

      • ScopesResource

        public ScopesResource()
    • Method Detail

      • getScopes

        @GET
        public jakarta.ws.rs.core.Response getScopes​(@DefaultValue("") @QueryParam("type")
                                                     String type,
                                                     @DefaultValue("50") @QueryParam("limit")
                                                     int limit,
                                                     @DefaultValue("") @QueryParam("pattern")
                                                     String pattern,
                                                     @DefaultValue("false") @QueryParam("withAssociatedClients")
                                                     boolean withAssociatedClients)
      • getScopeById

        @GET
        @Path("{inum}")
        public jakarta.ws.rs.core.Response getScopeById​(@NotNull @PathParam("inum")
                                                        @NotNull String inum,
                                                        @DefaultValue("false") @QueryParam("withAssociatedClients")
                                                        boolean withAssociatedClients)
      • getScopeByClientId

        @GET
        @Path("creator/{creatorId}")
        public jakarta.ws.rs.core.Response getScopeByClientId​(@NotNull @PathParam("creatorId")
                                                              @NotNull String creatorId)
      • getScopeByType

        @GET
        @Path("type/{type}")
        public jakarta.ws.rs.core.Response getScopeByType​(@NotNull @PathParam("type")
                                                          @NotNull String type)
      • createOpenidScope

        @POST
        public jakarta.ws.rs.core.Response createOpenidScope​(@Valid
                                                             @Valid io.jans.as.persistence.model.Scope scope)
      • updateScope

        @PUT
        public jakarta.ws.rs.core.Response updateScope​(@Valid
                                                       @Valid io.jans.as.persistence.model.Scope scope)
      • patchScope

        @PATCH
        @Consumes("application/json-patch+json")
        @Path("{inum}")
        public jakarta.ws.rs.core.Response patchScope​(@PathParam("inum") @NotNull
                                                      @NotNull String inum,
                                                      @NotNull
                                                      @NotNull String pathString)
                                               throws com.github.fge.jsonpatch.JsonPatchException,
                                                      IOException
        Throws:
        com.github.fge.jsonpatch.JsonPatchException
        IOException
      • deleteScope

        @DELETE
        @Path("{inum}")
        public jakarta.ws.rs.core.Response deleteScope​(@PathParam("inum") @NotNull
                                                       @NotNull String inum)