Class LDAPFilterCondition

  • All Implemented Interfaces:
    Condition, Cloneable

    @Deprecated
    public class LDAPFilterCondition
    extends Object
    implements Condition
    Deprecated.
    Use LDAPFilterCondition instead.
    The class LDAPFilterCondition is a plugin implementation of Condition interface. This condition checks whether the ldap entry of the user identified by sso token, in the directory specified in policy configuration service, satisfiies the ldap filter specified in the condition
    • Constructor Detail

      • LDAPFilterCondition

        public LDAPFilterCondition()
        Deprecated.
        No argument constructor
    • Method Detail

      • getPropertyNames

        public List getPropertyNames()
        Deprecated.
        Returns the List of property names for the condition.
        Specified by:
        getPropertyNames in interface Condition
        Returns:
        List of property names
      • getPropertySyntax

        public Syntax getPropertySyntax​(String property)
        Deprecated.
        Returns the syntax for a property name
        Specified by:
        getPropertySyntax in interface Condition
        Parameters:
        property - name of property for which to get Syntax
        Returns:
        Syntax for the property name
        See Also:
        Syntax
      • getDisplayName

        public String getDisplayName​(String property,
                                     Locale locale)
                              throws PolicyException
        Deprecated.
        Returns the display name for the property name. The locale variable could be used by the plugin to customize the display name for the given locale. The locale variable could be null, in which case the plugin must use the default locale.
        Specified by:
        getDisplayName in interface Condition
        Parameters:
        property - name of property for which to get the display name
        locale - locale for which to get the display name
        Returns:
        display name for the property name
        Throws:
        PolicyException
      • getValidValues

        public Set getValidValues​(String property)
                           throws PolicyException
        Deprecated.
        Returns the set of valid values given the property name. This method is called if the property Syntax is either the SINGLE_CHOICE or MULTIPLE_CHOICE.
        Specified by:
        getValidValues in interface Condition
        Parameters:
        property - name of property for which to find valid values
        Returns:
        Set of valid values for the property.
        Throws:
        PolicyException - if unable to get the Syntax.
      • setProperties

        public void setProperties​(Map properties)
                           throws PolicyException
        Deprecated.
        Sets the properties of the condition. Evaluation of ConditionDecision is influenced by these properties.
        Specified by:
        setProperties in interface Condition
        Parameters:
        properties - the properties of the condition that governs whether a policy applies. The keys in properties should be String objects. Value corresponding to each key should be a Set of String(s). Please note that properties is not cloned by the method. This condition requires value for key LDAP_FILTER to be defined. The value corresponding to the key should be a Set with only one element. The element should be a String.
        Throws:
        PolicyException - if properties is null or empty or does not contain value for key LDAP_FILTER or contains values for other keys
        See Also:
        Condition.LDAP_FILTER
      • getConditionDecision

        public ConditionDecision getConditionDecision​(SSOToken token,
                                                      Map env)
                                               throws PolicyException,
                                                      SSOException
        Deprecated.
        Returns the decision computed by this condition object.
        Specified by:
        getConditionDecision in interface Condition
        Parameters:
        token - single sign on token of the user
        env - request specific environment map of key/value pairs.
        Returns:
        the condition decision. The ConditionDecision encapsulates whether a policy applies for the request. The condition decision would imply true, if the ldap entry of the user, in the directory specified by policy configuration service, satifies the ldap filter, specified by LDAP_FILTER property of this condition. Otherwise, it would imply false Policy framework continues evaluating a policy only if it applies to the request as indicated by the CondtionDecision. Otherwise, further evaluation of the policy is skipped.
        Throws:
        SSOException - if the token is invalid
        PolicyException - if the decision could not be computed
        See Also:
        ConditionDecision
      • clone

        public Object clone()
        Deprecated.
        Returns a copy of this object.
        Specified by:
        clone in interface Condition
        Overrides:
        clone in class Object
        Returns:
        a copy of this object