Class IdentityProviderResource


  • public class IdentityProviderResource
    extends Object
    Author:
    Pedro Igor
    • Field Detail

      • logger

        protected static final org.jboss.logging.Logger logger
    • Method Detail

      • getIdentityProvider

        @GET
        @Produces("application/json")
        public IdentityProviderRepresentation getIdentityProvider()
        Get the identity provider
        Returns:
      • delete

        @DELETE
        public javax.ws.rs.core.Response delete()
        Delete the identity provider
        Returns:
      • update

        @PUT
        @Consumes("application/json")
        public javax.ws.rs.core.Response update​(IdentityProviderRepresentation providerRep)
        Update the identity provider
        Parameters:
        providerRep -
        Returns:
      • export

        @GET
        @Path("export")
        public javax.ws.rs.core.Response export​(@QueryParam("format")
                                                String format)
        Export public broker configuration for identity provider
        Parameters:
        format - Format to use
        Returns:
      • addMapper

        @POST
        @Path("mappers")
        @Consumes("application/json")
        public javax.ws.rs.core.Response addMapper​(IdentityProviderMapperRepresentation mapper)
        Add a mapper to identity provider
        Parameters:
        mapper -
        Returns:
      • getMapperById

        @GET
        @Path("mappers/{id}")
        @Produces("application/json")
        public IdentityProviderMapperRepresentation getMapperById​(@PathParam("id")
                                                                  String id)
        Get mapper by id for the identity provider
        Parameters:
        id -
        Returns:
      • update

        @PUT
        @Path("mappers/{id}")
        @Consumes("application/json")
        public void update​(@PathParam("id")
                           String id,
                           IdentityProviderMapperRepresentation rep)
        Update a mapper for the identity provider
        Parameters:
        id - Mapper id
        rep -
      • delete

        @DELETE
        @Path("mappers/{id}")
        public void delete​(@PathParam("id")
                           String id)
        Delete a mapper for the identity provider
        Parameters:
        id - Mapper id
      • getManagementPermissions

        @Path("management/permissions")
        @GET
        @Produces("application/json")
        public ManagementPermissionReference getManagementPermissions()
        Return object stating whether client Authorization permissions have been initialized or not and a reference
        Returns:
      • setManagementPermissionsEnabled

        @Path("management/permissions")
        @PUT
        @Produces("application/json")
        @Consumes("application/json")
        public ManagementPermissionReference setManagementPermissionsEnabled​(ManagementPermissionReference ref)
        Return object stating whether client Authorization permissions have been initialized or not and a reference
        Returns:
        initialized manage permissions reference