Class XACMLReaderWriter


  • public class XACMLReaderWriter
    extends Object
    Facade for reading and writing XACML and translating between XACML PolicySets and AM Privilege types.
    • Constructor Detail

      • XACMLReaderWriter

        public XACMLReaderWriter()
    • Method Detail

      • fromXACML

        public PrivilegeSet fromXACML​(PolicySet policySet)
                               throws EntitlementException
        Translate provided XACML PolicySet into OpenAM Privileges, ReferralPrivileges, Applications and ResourceTypes. XACML export file doesn't map Application and Resource Type completely and hence dummy ResourceType Ids are assigned to ResourceTypes created and same is used for linking Application, Privilege to the ResourceType.

        From a policySet instance:

      • An application is created for every unique application name found in the Policy instances.
      • One ResourceType instance (with dummy uuid) per Policy is created.
      • One instance of Privilege per Policy instance is created.
Parameters:
policySet - The set of policies to translate
Returns:
OpenAM Privileges, ReferralPrivileges, Applications and ResourceTypes.
Throws:
EntitlementException - If there was any unexpected error.