Class JwksResource


  • @Path("/config/jwks")
    @Produces("application/json")
    @Consumes("application/json")
    public class JwksResource
    extends ConfigBaseResource
    Author:
    Yuriy Zabrovarnyy
    • 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
      JwksResource()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      jakarta.ws.rs.core.Response deleteKey​(@NotNull String kid)  
      jakarta.ws.rs.core.Response get()  
      jakarta.ws.rs.core.Response getKeyById​(@NotNull io.jans.as.model.jwk.JSONWebKey jwk)  
      jakarta.ws.rs.core.Response getKeyById​(@NotNull String kid)  
      jakarta.ws.rs.core.Response patch​(@NotNull String kid, @NotNull String requestString)  
      jakarta.ws.rs.core.Response patch​(String requestString)  
      jakarta.ws.rs.core.Response put​(io.jans.as.model.config.WebKeysConfiguration webkeys)  
      • Methods inherited from class io.jans.configapi.core.rest.BaseResource

        checkNotEmpty, checkNotEmpty, checkNotNull, checkNotNull, checkNotNull, checkResourceNotNull, createSearchRequest, findRootError, getBadRequestException, getBadRequestException, getHttpHeaders, getHttpRequest, getInternalServerException, getMissingAttributeError, getNotAcceptableException, getNotFoundError, getUriInfo, throwBadRequestException, throwBadRequestException, throwInternalServerException, throwInternalServerException, throwMissingAttributeError
    • Constructor Detail

      • JwksResource

        public JwksResource()
    • Method Detail

      • get

        @GET
        public jakarta.ws.rs.core.Response get()
      • put

        @PUT
        public jakarta.ws.rs.core.Response put​(io.jans.as.model.config.WebKeysConfiguration webkeys)
      • patch

        @PATCH
        @Consumes("application/json-patch+json")
        public jakarta.ws.rs.core.Response patch​(String requestString)
                                          throws com.github.fge.jsonpatch.JsonPatchException,
                                                 IOException
        Throws:
        com.github.fge.jsonpatch.JsonPatchException
        IOException
      • getKeyById

        @POST
        @Path("/key")
        public jakarta.ws.rs.core.Response getKeyById​(@NotNull
                                                      @NotNull io.jans.as.model.jwk.JSONWebKey jwk)
      • getKeyById

        @GET
        @Path("/{kid}")
        public jakarta.ws.rs.core.Response getKeyById​(@PathParam("kid") @NotNull
                                                      @NotNull String kid)
      • patch

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

        @DELETE
        @Path("/{kid}")
        public jakarta.ws.rs.core.Response deleteKey​(@PathParam("kid") @NotNull
                                                     @NotNull String kid)