Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
<dependency>
<groupId>org.talend.esb.authorization</groupId>
<artifactId>tesb-xacml-rt</artifactId>
<version>5.4.1</version>
</dependency>
<bean class="org.talend.esb.authorization.xacml.rt.pep.CXFXACMLAuthorizingInterceptor" id="XACMLInterceptor">
<property name="pdpAddress" value="" />
</bean>
CXFXACMLAuthorizingInterceptor authzInterceptor =
new CXFXACMLAuthorizingInterceptor(true);
authzInterceptor.setRequireRoles(requireRoles);
authzInterceptor.setPdpAddress(pdpAddress);
authzInterceptor.setPolicyDecisionPoint(pdp);
message.getInterceptorChain().add(authzInterceptor);