Class AttributeLookupCondition

    • Constructor Detail

      • AttributeLookupCondition

        public AttributeLookupCondition()
        Constructor.
      • AttributeLookupCondition

        public AttributeLookupCondition​(String key,
                                        String value)
        Constructor.
        Parameters:
        key - Matching key.
        value - Matching value.
    • Method Detail

      • setState

        public void setState​(String state)
        Sets state of the object
        Parameters:
        state - State of the object encoded as string
      • getState

        public String getState()
        Returns state of the object.
        Returns:
        state of the object encoded as string.
      • evaluate

        public ConditionDecision evaluate​(String realm,
                                          Subject subject,
                                          String resourceName,
                                          Map<String,​Set<String>> environment)
                                   throws EntitlementException
        Returns ConditionDecision of EntitlementCondition evaluation.
        Parameters:
        realm - Realm name.
        subject - EntitlementCondition who is under evaluation.
        resourceName - Resource name.
        environment - Environment parameters.
        Returns:
        ConditionDecision of EntitlementCondition evaluation
        Throws:
        EntitlementException - if error occurs.
      • getKey

        public String getKey()
        Returns matching key.
        Returns:
        matching key.
      • getPConditionName

        public String getPConditionName()
        Returns OpenAM policy Condition name.
        Returns:
        subject name as used in OpenAM policy, this is relevant only when UserECondition was created from OpenAM policy Condition.
      • getValue

        public String getValue()
        Returns matching value.
        Returns:
        matching value.
      • setKey

        public void setKey​(String key)
        Sets matching key.
        Parameters:
        key - Matching key.
      • setPConditionName

        public void setPConditionName​(String pConditionName)
        Sets OpenAM policy Condition name
        Parameters:
        pConditionName - subject name as used in OpenAM policy, this is relevant only when UserECondition was created from OpenAM policy Condition.
      • setValue

        public void setValue​(String value)
        Set matching value.
        Parameters:
        value - Matching value.
      • toJSONObject

        public org.json.JSONObject toJSONObject()
                                         throws org.json.JSONException
        Returns JSONObject mapping of the object.
        Returns:
        JSONObject mapping of the object.
        Throws:
        org.json.JSONException
      • equals

        public boolean equals​(Object obj)
        Returns true if the passed in object is equal to this object
        Overrides:
        equals in class EntitlementConditionAdaptor
        Parameters:
        obj - object to check for equality
        Returns:
        true if the passed in object is equal to this object
      • toString

        public String toString()
        Returns string representation of the object.
        Overrides:
        toString in class Object
        Returns:
        string representation of the object.