如何编写可以访问json请求有效负载的自定义处理程序类,也不会覆盖APIAuthenticationHandler中可用的令牌功能 . 我试过写类并总是得到如下错误,

[2016-12-07 15:56:45,643] ERROR - APIFactory Error initializing API handler: org.wso2.carbon.apimgt.gateway.handlers.security.RequestAuthenticationHandler
java.lang.ClassNotFoundException: org.wso2.carbon.apimgt.gateway.handlers.security.RequestAuthenticationHandler cannot be found by synapse-core_2.1.7.wso2v3
        at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:455)
        at java.lang.Thread.run(Thread.java:745)
[2016-12-07 15:56:45,676]  INFO - DataBridge user admin connected
[2016-12-07 15:56:45,956]  WARN - SynapseXMLConfigurationFactory API configuration cannot be built - Continue in fail-safe mode
org.apache.synapse.SynapseException: Error initializing API handler: org.wso2.carbon.apimgt.gateway.handlers.security.RequestAuthenticationHandler
        at org.apache.synapse.config.xml.rest.APIFactory.handleException(APIFactory.java:202)

我还尝试通过复制APIAuthenticationHandler中的所有代码来扩展AbstractHandler并实现ManagedLifecycle,但由于依赖性,它有编译错误 . 如何解决APISecurityConstants,Authenticator和Utils.isCORSEnabled()依赖关系 .

是否可以通过API管理器中的get参数限制资源请求?如果是,请提供链接 .

我正在使用WSO2 Api Manager 2.0 .