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 boolean
convertToUpperCase
protected org.springframework.security.core.GrantedAuthority
defaultRole
protected String
groupRoleAttribute
protected String
groupSearchBase
protected String
groupSearchFilter
protected org.springframework.security.ldap.SpringSecurityLdapTemplate
ldapTemplate
protected String
rolePrefix
protected SearchControls
searchControls
-
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.ContextSource
getContextSource()
String
getGroupSearchBase()
void
setConvertToUpperCase(boolean convertToUpperCase)
void
setDefaultRole(String defaultRole)
void
setGroupRoleAttribute(String groupRoleAttribute)
void
setGroupSearchBase(String groupSearchBase)
void
setGroupSearchFilter(String groupSearchFilter)
void
setRolePrefix(String rolePrefix)
void
setSearchSubtree(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)
-
-