Class ProtocolMappersResource

java.lang.Object
org.keycloak.services.resources.admin.ProtocolMappersResource

public class ProtocolMappersResource extends Object
Base resource for managing users
Version:
$Revision: 1 $
Author:
Bill Burke
  • Field Details

  • Constructor Details

  • Method Details

    • getMappersPerProtocol

      @GET @Path("protocol/{protocol}") @Produces("application/json") public Stream<org.keycloak.representations.idm.ProtocolMapperRepresentation> getMappersPerProtocol(@PathParam("protocol") String protocol)
      Get mappers by name for a specific protocol
      Parameters:
      protocol -
      Returns:
    • createMapper

      @Path("models") @POST @Consumes("application/json") public jakarta.ws.rs.core.Response createMapper(org.keycloak.representations.idm.ProtocolMapperRepresentation rep)
      Create a mapper
      Parameters:
      rep -
    • createMapper

      @Path("add-models") @POST @Consumes("application/json") public void createMapper(List<org.keycloak.representations.idm.ProtocolMapperRepresentation> reps)
      Create multiple mappers
    • getMappers

      @GET @Path("models") @Produces("application/json") public Stream<org.keycloak.representations.idm.ProtocolMapperRepresentation> getMappers()
      Get mappers
      Returns:
    • getMapperById

      @GET @Path("models/{id}") @Produces("application/json") public org.keycloak.representations.idm.ProtocolMapperRepresentation getMapperById(@PathParam("id") String id)
      Get mapper by id
      Parameters:
      id - Mapper id
      Returns:
    • update

      @PUT @Path("models/{id}") @Consumes("application/json") public void update(@PathParam("id") String id, org.keycloak.representations.idm.ProtocolMapperRepresentation rep)
      Update the mapper
      Parameters:
      id - Mapper id
      rep -
    • delete

      @DELETE @Path("models/{id}") public void delete(@PathParam("id") String id)
      Delete the mapper
      Parameters:
      id - Mapper id