Package com.isode.dsapi.util
Class SaslConfiguration
java.lang.Object
com.isode.dsapi.util.SaslConfiguration
SASL Configuration.
- Since:
- 15.0
- Author:
- mst
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final AttributeTypestatic final AttributeTypestatic final AttributeTypestatic final SaslConfiguration.Rulesstatic final AttributeType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns SASL LDAP DB domain search filter.Returns current SASL configuration isodeSASLGenericBase attribute value.Return current SASL configuration isodeSASLGenericDomain attribute valuegetGenericDomainMatchAttrType(boolean useDefault) Returns current SASL configuration isodeSASLGenericDomainMatchAttr attribute value.getGenericFullMatchAttrType(boolean useDefault) Returns current SASL configuration isodeSASLGenericFullMatchAttr attribute value.getGenericNamingAttrType(boolean useDefault) Returns current SASL configuration isodeSASLGenericNamingAttr attribute value.Returns current SASL mapping rule.getGenericUserMatchAttrType(boolean useDefault) Returns current SASL configuration isodeSASLGenericUserMatchAttr attribute value.Returns current SASL configuration isodeSASLGenericUsers attribute value.Returns SASL LDAP DB user search filter.voidsetDomainFilter(String domainFilter) Sets SASL LDAP DB domain search filter.voidsetUserFilter(String userFilter) Sets SASL LDAP DB user search filter.
-
Field Details
-
DEFAULT_RULE
-
DEFAULT_DOMAIN_MATCH_ATTR
-
DEFAULT_NAMING_ATTR
-
DEFAULT_USER_MATCH_ATTR
-
DEFAULT_FULL_MATCH_ATTR
-
-
Constructor Details
-
SaslConfiguration
Creates a new instance of SaslConfiguration.- Parameters:
entry- DSA configuration entry with SASL configuration attributes (notnull)- Throws:
SaslConfigurationException- on bad SASL configuration attributes values
-
-
Method Details
-
getGenericRule
Returns current SASL mapping rule.- Returns:
- mapping rule (not
null)
-
getGenericBaseDN
Returns current SASL configuration isodeSASLGenericBase attribute value.- Returns:
- DN,
nullwhen not specified
-
getGenericUsersDN
Returns current SASL configuration isodeSASLGenericUsers attribute value.- Returns:
- partial DN,
nullwhen not specified
-
getGenericUserMatchAttrType
Returns current SASL configuration isodeSASLGenericUserMatchAttr attribute value. If attribute is not set or has no values it can use associated default value on request otherwise returnsnull.- Parameters:
useDefault- return default value for not set attribute value- Returns:
- attribute type or
nullif not specified and not use default
-
getGenericFullMatchAttrType
Returns current SASL configuration isodeSASLGenericFullMatchAttr attribute value. If attribute is not set or has no values it can use associated default value on request otherwise returnsnull.- Parameters:
useDefault- return default value for not set attribute value- Returns:
- attribute type or
nullif not specified and not use default
-
getGenericDomain
Return current SASL configuration isodeSASLGenericDomain attribute value- Returns:
- domain string or
nullif not specified
-
getGenericDomainMatchAttrType
Returns current SASL configuration isodeSASLGenericDomainMatchAttr attribute value. If attribute is not set or has no values it can use associated default value on request otherwise returnsnull.- Parameters:
useDefault- return default value for not set attribute value- Returns:
- attribute type or
nullif not specified and not use default
-
getGenericNamingAttrType
Returns current SASL configuration isodeSASLGenericNamingAttr attribute value. If attribute is not set or has no values it can use associated default value on request otherwise returnsnull.- Parameters:
useDefault- return default value for not set attribute value- Returns:
- attribute type or
nullif not specified and not use default
-
setUserFilter
Sets SASL LDAP DB user search filter.- Parameters:
userFilter- (nullallowed)- Since:
- 16.0
-
getUserFilter
Returns SASL LDAP DB user search filter.- Returns:
- SASL LDAP DB user search filter (
nullpossible) - Since:
- 16.0
-
setDomainFilter
Sets SASL LDAP DB domain search filter.- Parameters:
domainFilter- (nullallowed)- Since:
- 16.0
-
getDomainFilter
Returns SASL LDAP DB domain search filter.- Returns:
- SASL LDAP DB domain search filter (
nullpossible) - Since:
- 16.0
-