This is v9.4 of the developer resources that can be found under Start, Develop, Deploy, Operate, Customize and Reference sections, except with references to the Nok Nok S3 Suite instead of the DigipassONE Platform.

Interface

Prev Next
package com.noknok.gateway.sdk;
/**
 * Implement this interface to create a Policy Plugin.  
 * This interface defines a single method to get the policy name. 
 * Implementations should have a single constructor with the following
 * signature:
 * public MyPolicyManager (IConfigurationManager configurationManager, 
 *                         String tenantID, String objectType);
 */
public interface IPolicyManager {
/**
 * Called when REST APIs, which require authorization, are accessed,
 * such as at registration and step-up auth APIs.Implementation class
 * may want to use either input jsonRequest or any other retrieved data
 * from HttpServletRequest instance.
 * Parameters:
 *    request - HTTP request from client.
 *    jsonRequest - REST request for Authentication Server.
 * Returns:
 *    Policy name to be used for the operation on the 
 *    Nok Nok Authentication server.
 * Throws:
 *    BadRequestException - if request is invalid.
 *    InternalErrorException - if other errors occur.
 */
String getPolicyName(javax.servlet.http.HttpServletRequest request,
                            com.google.gson.JsonObject jsonRequest);
}