public class SecureTicketHandler extends RequestHandlerBase
This request handler is responsible for generating a secure ticket which can be used to authenticate a user.
A typical use case is once a user logged in the frontend app can request a secure ticket and use it to authenticate a websocket connection
Destroyable.Util
logger
Constructor and Description |
---|
SecureTicketHandler(SecureTicketCodec codec) |
Modifier and Type | Method and Description |
---|---|
void |
handle(ActionContext context)
Invoke handler upon an action context
|
void |
prepareAuthentication(ActionContext context)
Setting up handler for authentication.
|
apply, corsSpec, csrfSpec, destroy, express, isDestroyed, noContextResoving, realHandler, releaseResources, requireResolveContext, scope, sessionFree, setExpress, setSessionFree, supportPartialPath, wrap
@Inject public SecureTicketHandler(SecureTicketCodec codec)
public void handle(ActionContext context)
RequestHandler
Invoke handler upon an action context
context
- the context datapublic void prepareAuthentication(ActionContext context)
RequestHandler
Setting up handler for authentication. For example, initialize the missing authentication handler, csrf failure handler.
context
- the current action contextCopyright © 2014–2017 ActFramework. All rights reserved.