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 java.lang.Exception
        Overrides:
        init in class step.core.deployment.AbstractStepServices
        Throws:
        java.lang.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")
                               java.lang.String username)
      • getUser

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

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

        @GET
        @Path("/security/passwordpolicies")
        @Produces("application/json")
        public java.util.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")
                                                        java.lang.String username)
      • resetAdminPassword

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

        public java.security.PublicKey getPublicKey()