Package com.sun.identity.xacml.spi
Interface ResultMapper
-
- All Known Implementing Classes:
FMResultMapper
public interface ResultMapperThis interface defines the SPI for pluggable implementations to map native resource result to XACML context result
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidinitialize(String pdpEntityId, String pepEntityId, Map properties)Initializes the mapper implementation.ResultmapToXACMLResult(Object nativeResult, String nativeServiceName, ResourceMapper resourceMapper, ActionMapper actionMapper)Returns XACML context Result
-
-
-
Method Detail
-
initialize
void initialize(String pdpEntityId, String pepEntityId, Map properties) throws XACMLException
Initializes the mapper implementation. This would be called immediately after constructing an instance of the implementation.- Parameters:
pdpEntityId- EntityID of PDPpepEntityId- EntityID of PEPproperties- configuration properties- Throws:
XACMLException- if can not initialize
-
mapToXACMLResult
Result mapToXACMLResult(Object nativeResult, String nativeServiceName, ResourceMapper resourceMapper, ActionMapper actionMapper) throws XACMLException
Returns XACML context Result- Parameters:
nativeResult- native resource resultnativeServiceName- native service nameresourceMapper- resource mapper to map to XACML ResourceactionMapper- action mapper to map to XACML Action- Returns:
- XACML context Result
- Throws:
XACMLException- if can not map to XACML context Result
-
-