SecurityRealm.SecurityComponents
are now created after SecurityRealm
is created, so
the initialization order issue that this code was trying to address no longer exists.@Deprecated public class DeferredCreationLdapAuthoritiesPopulator extends Object implements org.acegisecurity.providers.ldap.LdapAuthoritiesPopulator
LdapAuthoritiesPopulator
that defers creation of a
DefaultLdapAuthoritiesPopulator
until one is needed. This is done to
ensure that the groupSearchBase property can be set.Constructor and Description |
---|
DeferredCreationLdapAuthoritiesPopulator(org.acegisecurity.ldap.InitialDirContextFactory initialDirContextFactory,
String groupSearchBase)
Deprecated.
Constructor.
|
Modifier and Type | Method and Description |
---|---|
org.acegisecurity.GrantedAuthority[] |
getGrantedAuthorities(org.acegisecurity.userdetails.ldap.LdapUserDetails userDetails)
Deprecated.
|
void |
setConvertToUpperCase(boolean convertToUpperCase)
Deprecated.
|
void |
setDefaultRole(String defaultRole)
Deprecated.
|
void |
setGroupRoleAttribute(String groupRoleAttribute)
Deprecated.
|
void |
setGroupSearchBase(String groupSearchBase)
Deprecated.
|
void |
setGroupSearchFilter(String groupSearchFilter)
Deprecated.
|
void |
setInitialDirContextFactory(org.acegisecurity.ldap.InitialDirContextFactory initialDirContextFactory)
Deprecated.
|
void |
setRolePrefix(String rolePrefix)
Deprecated.
|
void |
setSearchSubtree(boolean searchSubtree)
Deprecated.
|
public DeferredCreationLdapAuthoritiesPopulator(org.acegisecurity.ldap.InitialDirContextFactory initialDirContextFactory, String groupSearchBase)
initialDirContextFactory
- supplies the contexts used to search for user roles.groupSearchBase
- if this is an empty string the search will be performed from
the root DN of the context factory.public org.acegisecurity.GrantedAuthority[] getGrantedAuthorities(org.acegisecurity.userdetails.ldap.LdapUserDetails userDetails) throws org.acegisecurity.ldap.LdapDataAccessException
getGrantedAuthorities
in interface org.acegisecurity.providers.ldap.LdapAuthoritiesPopulator
org.acegisecurity.ldap.LdapDataAccessException
public void setConvertToUpperCase(boolean convertToUpperCase)
public void setDefaultRole(String defaultRole)
public void setGroupRoleAttribute(String groupRoleAttribute)
public void setGroupSearchBase(String groupSearchBase)
public void setGroupSearchFilter(String groupSearchFilter)
public void setInitialDirContextFactory(org.acegisecurity.ldap.InitialDirContextFactory initialDirContextFactory)
public void setRolePrefix(String rolePrefix)
public void setSearchSubtree(boolean searchSubtree)
Copyright © 2016. All rights reserved.