public class LdapProviderConfig.Identity extends Object
Constructor and Description |
---|
Identity() |
Modifier and Type | Method and Description |
---|---|
String |
getBaseDN()
Configures the base DN for searches of this kind of identity
|
String |
getExtraFilter()
Configures the extra LDAP filter that is appended to the internally computed filter when searching for
identities.
|
String |
getIdAttribute()
Configures the attribute that is used to identify this identity by id.
|
String[] |
getObjectClasses()
Configures the object classes of this kind of identity.
|
String |
getSearchFilter(String id)
Returns the LDAP filter that is used when searching this type of identity.
|
boolean |
makeDnPath()
Configures if the identities DN should be used to generate a portion of the authorizables intermediate path.
|
LdapProviderConfig.Identity |
setBaseDN(String baseDN)
Sets the base DN for search of this kind of identity.
|
LdapProviderConfig.Identity |
setExtraFilter(String extraFilter)
Sets the extra search filter.
|
LdapProviderConfig.Identity |
setIdAttribute(String idAttribute)
Sets the id attribute.
|
LdapProviderConfig.Identity |
setMakeDnPath(boolean makeDnPath)
Sets the intermediate path flag.
|
LdapProviderConfig.Identity |
setObjectClasses(String... objectClasses)
Sets the object classes.
|
String |
toString() |
@Nonnull public String getBaseDN()
@Nonnull public LdapProviderConfig.Identity setBaseDN(@Nonnull String baseDN)
baseDN
- the DN as string.this
getBaseDN()
@Nonnull public String[] getObjectClasses()
for more detail about searching and filtering
@Nonnull public LdapProviderConfig.Identity setObjectClasses(@Nonnull String... objectClasses)
objectClasses
- the object classesthis
getObjectClasses()
@Nonnull public String getIdAttribute()
for more detail about searching and filtering
@Nonnull public LdapProviderConfig.Identity setIdAttribute(@Nonnull String idAttribute)
idAttribute
- the id attribute namethis
getIdAttribute()
@CheckForNull public String getExtraFilter()
@Nonnull public LdapProviderConfig.Identity setExtraFilter(@Nullable String extraFilter)
extraFilter
- the filterthis
getExtraFilter()
public boolean makeDnPath()
true
if the DN is used a intermediate path.@Nonnull public LdapProviderConfig.Identity setMakeDnPath(boolean makeDnPath)
makeDnPath
- true
to use the DN as intermediate paththis
makeDnPath()
@Nonnull public String getSearchFilter(@Nonnull String id)
(&(${idAttr}=${id})(objectclass=${objectclass})${extraFilter})
Note that the objectclass part is repeated according to the specified objectclasses in getObjectClasses()
.id
- the id valueCopyright © 2012–2018 The Apache Software Foundation. All rights reserved.