LDAPFilterCondition
instead.@Deprecated public class LDAPFilterCondition extends Object implements Condition
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 conditionAM_IDENTITY_NAME, APPLICATION_IDLE_TIMEOUT, APPLICATION_NAME, AUTH_LEVEL, AUTH_LEVEL_CONDITION_ADVICE, AUTH_SCHEME, AUTH_SCHEME_CONDITION_ADVICE, AUTHENTICATE_TO_REALM, AUTHENTICATE_TO_REALM_CONDITION_ADVICE, AUTHENTICATE_TO_SERVICE, AUTHENTICATE_TO_SERVICE_CONDITION_ADVICE, DNS_NAME, END_DATE, END_DAY, END_IP, END_TIME, ENFORCEMENT_TIME_ZONE, INVOCATOR_PRINCIPAL_UUID, LDAP_FILTER, MAX_SESSION_TIME, REQUEST_AUTH_LEVEL, REQUEST_AUTH_SCHEMES, REQUEST_AUTHENTICATED_TO_REALMS, REQUEST_AUTHENTICATED_TO_SERVICES, REQUEST_DNS_NAME, REQUEST_IP, REQUEST_TIME_ZONE, START_DATE, START_DAY, START_IP, START_TIME, TERMINATE_SESSION, VALUE_CASE_INSENSITIVE
Constructor and Description |
---|
LDAPFilterCondition()
Deprecated.
No argument constructor
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Deprecated.
Returns a copy of this object.
|
ConditionDecision |
getConditionDecision(SSOToken token,
Map env)
Deprecated.
Returns the decision computed by this condition object.
|
String |
getDisplayName(String property,
Locale locale)
Deprecated.
Returns the display name for the property name.
|
Map |
getProperties()
Deprecated.
Returns properties of this condition.
|
List |
getPropertyNames()
Deprecated.
Returns the
List of property names for the condition. |
Syntax |
getPropertySyntax(String property)
Deprecated.
Returns the syntax for a property name
|
Set |
getValidValues(String property)
Deprecated.
Returns the set of valid values given the property name.
|
void |
setProperties(Map properties)
Deprecated.
Sets the properties of the condition.
|
void |
validate()
Deprecated.
|
public LDAPFilterCondition()
public List getPropertyNames()
List
of property names for the condition.getPropertyNames
in interface Condition
List
of property namespublic Syntax getPropertySyntax(String property)
getPropertySyntax
in interface Condition
property
- name of property for which to get Syntax
Syntax for the property name
Syntax
public String getDisplayName(String property, Locale locale) throws PolicyException
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.getDisplayName
in interface Condition
property
- name of property for which to get the display namelocale
- locale for which to get the display namePolicyException
public Set getValidValues(String property) throws PolicyException
getValidValues
in interface Condition
property
- name of property for which to find valid valuesSet
of valid values for the property.PolicyException
- if unable to get the Syntax.public void setProperties(Map properties) throws PolicyException
ConditionDecision
is influenced by these
properties.setProperties
in interface Condition
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.PolicyException
- if properties is null or empty or does not
contain value for key LDAP_FILTER or contains values
for other keysCondition.LDAP_FILTER
public Map getProperties()
getProperties
in interface Condition
Map
.Condition.setProperties(java.util.Map<java.lang.String, java.util.Set<java.lang.String>>)
public ConditionDecision getConditionDecision(SSOToken token, Map env) throws PolicyException, SSOException
getConditionDecision
in interface Condition
token
- single sign on token of the userenv
- request specific environment map of key/value pairs.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.SSOException
- if the token is invalidPolicyException
- if the decision could not be computedConditionDecision
public Object clone()
public void validate() throws PolicyException
PolicyException
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.