Interface ResultMapper

  • All Known Implementing Classes:
    FMResultMapper

    public interface ResultMapper
    This interface defines the SPI for pluggable implementations to map native resource result to 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 PDP
        pepEntityId - EntityID of PEP
        properties - 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 result
        nativeServiceName - native service name
        resourceMapper - resource mapper to map to XACML Resource
        actionMapper - action mapper to map to XACML Action
        Returns:
        XACML context Result
        Throws:
        XACMLException - if can not map to XACML context Result