Class AccessServices


  • @Singleton
    @Path("/access")
    public class AccessServices
    extends AbstractServices
    • Constructor Detail

      • AccessServices

        public AccessServices()
    • Method Detail

      • init

        @PostConstruct
        public void init()
                  throws java.lang.Exception
        Overrides:
        init in class AbstractServices
        Throws:
        java.lang.Exception
      • authenticateUser

        @POST
        @Path("/login")
        @Produces("application/json")
        @Consumes("application/json")
        public javax.ws.rs.core.Response authenticateUser​(ch.commons.auth.Credentials credentials)
      • getServiceAccountToken

        @GET
        @Path("/service-account/token")
        public java.lang.String getServiceAccountToken​(@QueryParam("lifetime")
                                                       long days)
      • getAccessConfiguration

        @GET
        @Path("/conf")
        public AccessConfiguration getAccessConfiguration()
      • logout

        @POST
        @Path("/logout")
        public void logout​(@Context
                           javax.servlet.http.HttpServletRequest req)
      • isDemo

        public boolean isDemo()