Class FMResultMapper

  • All Implemented Interfaces:
    ResultMapper

    public class FMResultMapper
    extends Object
    implements ResultMapper
    This class implements ResultMapper to map between and native resource result and XACML context result
    • Constructor Detail

      • FMResultMapper

        public FMResultMapper()
    • Method Detail

      • initialize

        public 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.
        Specified by:
        initialize in interface ResultMapper
        Parameters:
        pdpEntityId - EntityID of PDP
        pepEntityId - EntityID of PEP
        properties - configuration properties
        Throws:
        XACMLException - if can not initialize
      • mapToXACMLResult

        public Result mapToXACMLResult​(Object nativeResult,
                                       String nativeServiceName,
                                       ResourceMapper resourceMapper,
                                       ActionMapper actionMapper)
                                throws XACMLException
        Maps com.sun.identity.policy.ResourceResult to XACML context Result
        Specified by:
        mapToXACMLResult in interface ResultMapper
        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