Interface EnvironmentMapper

  • All Known Implementing Classes:
    FMEnvironmentMapper

    public interface EnvironmentMapper
    This interface defines the SPI for pluggable implementations to map XACML context Environment to native environment
    • 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
      • mapToNativeEnvironment

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