--- title: "Interface" slug: "s3suite94-customize-apiserverplugins-createapolicyplugin-interface" updated: 2026-10-27T18:41:54Z published: 2026-10-27T18:41:54Z canonical: "docs.onespan.com/s3suite94-customize-apiserverplugins-createapolicyplugin-interface" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.onespan.com/llms.txt > Use this file to discover all available pages before exploring further. # Interface ```plaintext 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); } ```