The interface for the PDP customization is included to the following
tesb-xacml-pdp-api bundle:
package org.talend.esb.authorization.xacml.pdp.api;
import javax.xml.transform.Source;
/**
* An interface that describes a PolicyDecisionPoint (PDP).
*/
public interface PolicyDecisionPoint {
/**
* Evaluate an XACML Request and return a Response
* @param request an XACML Request as a Source
* @return the XACML Response as a Source
*/
Source evaluate(Source request);
}
So first of all, make sure this bundle is installed and
accessible.
The custom PDP bundle is an OSGi bundle which should import the
authorization API resources and implement the org.talend.esb.authorization.xacml.pdp.api.PolicyDecisionPoint
interface.
So, create this OSGi bundle via Maven.
Import the ESB XACML PDP API as a dependency to the Maven
pom.xml:
When using Spring for the description and rendering of the beans for
the PDP implementation, create the beans.xml file in
src/main/resources/META-INF/spring if it not exist, and add the PDP
interface implementation. For example: