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)
      • getScopeById

        @GET
        @Path("{inum}")
        public jakarta.ws.rs.core.Response getScopeById​(@NotNull @PathParam("inum")
                                                        @NotNull String inum)
      • 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)