Class AccessServices


  • @Singleton
    @Path("/access")
    public class AccessServices
    extends step.core.deployment.AbstractStepServices
    • Field Summary

      • Fields inherited from class step.core.deployment.AbstractStepServices

        configuration, SESSION
    • Constructor Summary

      Constructors 
      Constructor Description
      AccessServices()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      jakarta.ws.rs.core.Response authenticateUser​(jakarta.servlet.http.HttpServletRequest req, step.core.auth.Credentials credentials)  
      ApiToken createServiceAccountToken​(AccessServices.ApiTokenRequest apiTokenRequest)  
      java.util.List<ApiToken> getServiceAccountTokens()  
      void init()  
      boolean isDemo()  
      void logout​(jakarta.servlet.http.HttpServletRequest req)  
      void revoke​(java.lang.String id)  
      • Methods inherited from class step.core.deployment.AbstractStepServices

        checkRightsOnBehalfOf, getAuthorizationManager, getContext, getExecutionRunnable, getObjectEnricher, getObjectFilter, getScheduler
      • Methods inherited from class step.framework.server.AbstractServices

        getAbstractContext, getHttpSession, getSession, getSession, invalidateSession, setHttpServletRequest, setSession
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AccessServices

        public AccessServices()
    • Method Detail

      • init

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

        @POST
        @Path("/login")
        @Produces("application/json")
        @Consumes("application/json")
        public jakarta.ws.rs.core.Response authenticateUser​(@Context
                                                            jakarta.servlet.http.HttpServletRequest req,
                                                            step.core.auth.Credentials credentials)
      • createServiceAccountToken

        @POST
        @Path("/service-account/token")
        @Consumes("application/json")
        @Produces("application/json")
        public ApiToken createServiceAccountToken​(AccessServices.ApiTokenRequest apiTokenRequest)
      • revoke

        @DELETE
        @Path("/service-account/token/{id}")
        @Produces("application/json")
        public void revoke​(@PathParam("id")
                           java.lang.String id)
      • getServiceAccountTokens

        @GET
        @Path("/service-account/tokens")
        @Produces("application/json")
        public java.util.List<ApiToken> getServiceAccountTokens()
      • logout

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

        public boolean isDemo()