Class UserAdminServices


  • @Singleton
    @Path("admin")
    public class UserAdminServices
    extends step.core.deployment.AbstractStepServices
    • Constructor Detail

      • UserAdminServices

        public UserAdminServices()
    • Method Detail

      • init

        @PostConstruct
        public void init()
                  throws Exception
        Overrides:
        init in class step.core.deployment.AbstractStepServices
        Throws:
        Exception
      • saveUser

        @POST
        @Consumes("application/json")
        @Path("/user")
        public void saveUser​(step.core.access.User user)
      • removeUser

        @DELETE
        @Path("/user/{id}")
        public void removeUser​(@PathParam("id")
                               String username)
      • getUser

        @GET
        @Path("/user/{id}")
        @Produces("application/json")
        public step.core.access.User getUser​(@PathParam("id")
                                             String username)
      • getUserList

        @GET
        @Path("/users")
        @Produces("application/json")
        public List<step.core.access.User> getUserList()
      • getPasswordPolicies

        @GET
        @Path("/security/passwordpolicies")
        @Produces("application/json")
        public List<PasswordPolicyDescriptor> getPasswordPolicies()
      • getCurrentUser

        protected step.core.access.User getCurrentUser()
      • resetPassword

        @POST
        @Consumes("application/json")
        @Produces("application/json")
        @Path("/user/{id}/resetpwd")
        public UserAdminServices.Password resetPassword​(@PathParam("id")
                                                        String username)
      • resetAdminPassword

        @POST
        @Produces("application/json")
        @Path("/serviceaccount/resetpwd")
        public jakarta.ws.rs.core.Response resetAdminPassword​(String requestEncrypted)
      • getPublicKey

        public PublicKey getPublicKey()