Class FMEnvironmentMapper

  • All Implemented Interfaces:
    EnvironmentMapper

    public class FMEnvironmentMapper
    extends Object
    implements EnvironmentMapper
    This class implements EnvironmentMapper to map between XACML context Environment and FM native environment. This mapper does not recognise any attributes of xacml-context:Envrionement at present. So, at present it is essentially a no-op.
    • Constructor Detail

      • FMEnvironmentMapper

        public FMEnvironmentMapper()
    • 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 EnvironmentMapper
        Parameters:
        pdpEntityId - EntityID of PDP
        pepEntityId - EntityID of PEP
        properties - configuration properties
        Throws:
        XACMLException - if can not initialize
      • mapToNativeEnvironment

        public Map mapToNativeEnvironment​(Environment xacmlContextEnvironment,
                                          List xacmlContextSubjects)
                                   throws XACMLException
        Returns native environment
        Specified by:
        mapToNativeEnvironment in interface EnvironmentMapper
        Parameters:
        xacmlContextEnvironment - XACML context Environment
        xacmlContextSubjects - XACML context Subject(s)
        Returns:
        native environment map
        Throws:
        XACMLException - if can not map to native environment