Class DefaultIdentityCheckHandler
- java.lang.Object
-
- de.xima.fc.gui.common.event.handler.DefaultIdentityCheckHandler
-
- All Implemented Interfaces:
IApplicationEventHandler
,ISessionEventHandler
,Serializable
public class DefaultIdentityCheckHandler extends Object implements ISessionEventHandler
Default identity check handler that executes a Java method if the tokens match.- Since:
- 8.0.0
- Author:
- XIMA Media GmbH
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handle(IdentityCheckCallbackEvent event)
Handles an identity check callback event by invoking the callback handler if the tokens matches the configured token.static DefaultIdentityCheckHandler
of(String token, Consumer<IdentityCheckCallbackEvent> callback)
Create a newDefaultIdentityCheckHandler
that listens forIdentityCheckCallbackEvent
and invokes the given callback handler if the event's token matches the given token.
-
-
-
Method Detail
-
of
public static DefaultIdentityCheckHandler of(String token, Consumer<IdentityCheckCallbackEvent> callback)
Create a newDefaultIdentityCheckHandler
that listens forIdentityCheckCallbackEvent
and invokes the given callback handler if the event's token matches the given token.- Parameters:
token
- A token to which to limit hte callback.callback
- Callback to invoke if the token matches.- Returns:
- A new session event handler for handling callbacks for a given token.
-
handle
public void handle(IdentityCheckCallbackEvent event)
Handles an identity check callback event by invoking the callback handler if the tokens matches the configured token.- Parameters:
event
- Event that was posted.
-
-