Class IJCAbstractLdapAuthoritiesPopulator
- java.lang.Object
-
- com.im.df.security.mechanim.ldap.authorization.IJCAbstractLdapAuthoritiesPopulator
-
- All Implemented Interfaces:
org.springframework.security.ldap.userdetails.LdapAuthoritiesPopulator
- Direct Known Subclasses:
MappingLdapAuthoritiesPopulator,TrimerLdapAuthoritiesPopulator
public abstract class IJCAbstractLdapAuthoritiesPopulator extends Object implements org.springframework.security.ldap.userdetails.LdapAuthoritiesPopulator
Holding shared bits of IJC custom populators as well as acting as the base class to be substitute by different implementations when required.- Author:
- Masoud Kalali
-
-
Field Summary
Fields Modifier and Type Field Description protected booleanconvertToUpperCaseprotected org.springframework.security.core.GrantedAuthoritydefaultRoleprotected StringgroupRoleAttributeprotected StringgroupSearchBaseprotected StringgroupSearchFilterprotected org.springframework.security.ldap.SpringSecurityLdapTemplateldapTemplateprotected StringrolePrefixprotected SearchControlssearchControls
-
Constructor Summary
Constructors Constructor Description IJCAbstractLdapAuthoritiesPopulator(org.springframework.ldap.core.ContextSource contextSource, String groupSearchBase)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.springframework.ldap.core.ContextSourcegetContextSource()StringgetGroupSearchBase()voidsetConvertToUpperCase(boolean convertToUpperCase)voidsetDefaultRole(String defaultRole)voidsetGroupRoleAttribute(String groupRoleAttribute)voidsetGroupSearchBase(String groupSearchBase)voidsetGroupSearchFilter(String groupSearchFilter)voidsetRolePrefix(String rolePrefix)voidsetSearchSubtree(boolean searchSubtree)
-
-
-
Field Detail
-
defaultRole
protected org.springframework.security.core.GrantedAuthority defaultRole
-
ldapTemplate
protected org.springframework.security.ldap.SpringSecurityLdapTemplate ldapTemplate
-
searchControls
protected SearchControls searchControls
-
groupRoleAttribute
protected String groupRoleAttribute
-
groupSearchBase
protected String groupSearchBase
-
groupSearchFilter
protected String groupSearchFilter
-
rolePrefix
protected String rolePrefix
-
convertToUpperCase
protected boolean convertToUpperCase
-
-
Constructor Detail
-
IJCAbstractLdapAuthoritiesPopulator
public IJCAbstractLdapAuthoritiesPopulator(org.springframework.ldap.core.ContextSource contextSource, String groupSearchBase)
-
-
Method Detail
-
getContextSource
protected org.springframework.ldap.core.ContextSource getContextSource()
-
setGroupSearchBase
public final void setGroupSearchBase(String groupSearchBase)
-
getGroupSearchBase
public final String getGroupSearchBase()
-
setDefaultRole
public void setDefaultRole(String defaultRole)
-
setGroupRoleAttribute
public void setGroupRoleAttribute(String groupRoleAttribute)
-
setGroupSearchFilter
public void setGroupSearchFilter(String groupSearchFilter)
-
setRolePrefix
public void setRolePrefix(String rolePrefix)
-
setSearchSubtree
public void setSearchSubtree(boolean searchSubtree)
-
setConvertToUpperCase
public void setConvertToUpperCase(boolean convertToUpperCase)
-
-