|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecthudson.security.DeferredCreationLdapAuthoritiesPopulator
SecurityRealm.SecurityComponents are now created after SecurityRealm is created, so
the initialization order issue that this code was trying to address no longer exists.
public class DeferredCreationLdapAuthoritiesPopulator
Implementation of LdapAuthoritiesPopulator that defers creation of a
DefaultLdapAuthoritiesPopulator until one is needed. This is done to
ensure that the groupSearchBase property can be set.
| Constructor Summary | |
|---|---|
DeferredCreationLdapAuthoritiesPopulator(org.acegisecurity.ldap.InitialDirContextFactory initialDirContextFactory,
String groupSearchBase)
Deprecated. Constructor. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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.| Method Detail |
|---|
public org.acegisecurity.GrantedAuthority[] getGrantedAuthorities(org.acegisecurity.userdetails.ldap.LdapUserDetails userDetails)
throws org.acegisecurity.ldap.LdapDataAccessException
getGrantedAuthorities in interface org.acegisecurity.providers.ldap.LdapAuthoritiesPopulatororg.acegisecurity.ldap.LdapDataAccessExceptionpublic 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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||