Digipass S3 is now DigipassONE. This section is currently being updated to reflect our new name.

Create a Session Plugin

Prev Next

The Session plugin implemented in com.noknok.gateway.plugin.session.JWTProcessor is used in the API Server default configuration. To create a custom Session Plugin, create a class that implements the ISessionManager interface. This section first covers the method headers of that interface. Next, it describes when the API Server calls each method and what it is expected to do.

Your custom Session Plugin can expect sessionData as a JSON object in the jsonRequest parameter. The sessionData object can be present in the jsonRequest parameter only when onVerifyRequest() is called.

Your custom Session Plugin can expect and provide sessionData as a JSON object in the jsonResponse parameter. The sessionData object can be received and added to jsonResponse only when onAuthenticated() or onResponse() is called. For more information about sessionData, see the REST API Reference to the Nok Nok Data Types.

For information about building and deploying custom API Server plugins, see Create a plugin.