Package step.core.deployment
Class AccessServices
- java.lang.Object
-
- step.framework.server.AbstractServices<User>
-
- step.core.deployment.AbstractStepServices
-
- step.core.deployment.AccessServices
-
@Singleton @Path("/access") public class AccessServices extends AbstractStepServices
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAccessServices.SessionResponsestatic classAccessServices.TokenResponse
-
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.ResponseauthenticateUser(step.core.auth.Credentials credentials)protected AccessServices.SessionResponsebuildSessionResponse(step.framework.server.Session session)AccessConfigurationgetAccessConfiguration()AccessServices.SessionResponsegetCurrentSession()StringgetServiceAccountToken(long days)voidinit()booleanisDemo()voidlogout(jakarta.servlet.http.HttpServletRequest req)-
Methods inherited from class step.core.deployment.AbstractStepServices
getContext, getExecutionRunnable, getObjectEnricher, getObjectFilter, getScheduler
-
-
-
-
Method Detail
-
init
@PostConstruct public void init() throws Exception- Overrides:
initin classAbstractStepServices- Throws:
Exception
-
authenticateUser
@POST @Path("/login") @Produces("application/json") @Consumes("application/json") public jakarta.ws.rs.core.Response authenticateUser(step.core.auth.Credentials credentials)
-
getServiceAccountToken
@GET @Path("/service-account/token") @Produces("text/plain") public String getServiceAccountToken(@QueryParam("lifetime") long days)
-
getCurrentSession
@GET @Path("/session") public AccessServices.SessionResponse getCurrentSession()
-
buildSessionResponse
protected AccessServices.SessionResponse buildSessionResponse(step.framework.server.Session session)
-
getAccessConfiguration
@GET @Produces("application/json") @Path("/conf") public AccessConfiguration getAccessConfiguration()
-
logout
@POST @Path("/logout") public void logout(@Context jakarta.servlet.http.HttpServletRequest req)
-
isDemo
public boolean isDemo()
-
-