Class OpenSSOPrivilege

    • Constructor Detail

      • OpenSSOPrivilege

        public OpenSSOPrivilege()
    • Method Detail

      • evaluate

        public List<Entitlement> evaluate​(Subject adminSubject,
                                          String realm,
                                          Subject subject,
                                          String applicationName,
                                          String normalisedResourceName,
                                          String requestedResourceName,
                                          Set<String> actionNames,
                                          Map<String,​Set<String>> environment,
                                          boolean recursive,
                                          Object context)
                                   throws EntitlementException
        Description copied from class: Privilege
        Returns a list of entitlement for a given subject, resource name and environment.
        Specified by:
        evaluate in interface IPrivilege
        Specified by:
        evaluate in class Privilege
        Parameters:
        adminSubject - Admin Subject
        realm - Realm Name
        subject - Subject who is under evaluation.
        applicationName - Application name.
        normalisedResourceName - The normalised resource name.
        requestedResourceName - The requested resource name.
        actionNames - Set of action names.
        environment - Environment parameters.
        recursive - true to perform evaluation on sub resources from the given resource name.
        context - A security context
        Returns:
        a list of entitlement for a given subject, resource name and environment.
        Throws:
        EntitlementException - if the result cannot be determined.
      • toJSONObject

        public org.json.JSONObject toJSONObject()
                                         throws org.json.JSONException
        Returns JSONObject mapping of the object
        Overrides:
        toJSONObject in class Privilege
        Returns:
        JSONObject mapping of the object
        Throws:
        org.json.JSONException - if can not map to JSONObject
      • init

        protected void init​(org.json.JSONObject jo)
        Specified by:
        init in class Privilege
      • setPolicyName

        public void setPolicyName​(String policyName)
        Sets policy name.
        Parameters:
        policyName - Policy name.
      • getPolicyName

        public String getPolicyName()
        Returns policy name.
        Returns:
        policyName Policy name.