hudson.security
Class DeferredCreationLdapAuthoritiesPopulator

java.lang.Object
  extended by hudson.security.DeferredCreationLdapAuthoritiesPopulator
All Implemented Interfaces:
org.acegisecurity.providers.ldap.LdapAuthoritiesPopulator

Deprecated. as of 1.280 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
extends Object
implements org.acegisecurity.providers.ldap.LdapAuthoritiesPopulator

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.

Author:
justinedelson

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

DeferredCreationLdapAuthoritiesPopulator

public DeferredCreationLdapAuthoritiesPopulator(org.acegisecurity.ldap.InitialDirContextFactory initialDirContextFactory,
                                                String groupSearchBase)
Deprecated. 
Constructor.

Parameters:
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

getGrantedAuthorities

public org.acegisecurity.GrantedAuthority[] getGrantedAuthorities(org.acegisecurity.userdetails.ldap.LdapUserDetails userDetails)
                                                           throws org.acegisecurity.ldap.LdapDataAccessException
Deprecated. 
Specified by:
getGrantedAuthorities in interface org.acegisecurity.providers.ldap.LdapAuthoritiesPopulator
Throws:
org.acegisecurity.ldap.LdapDataAccessException

setConvertToUpperCase

public void setConvertToUpperCase(boolean convertToUpperCase)
Deprecated. 

setDefaultRole

public void setDefaultRole(String defaultRole)
Deprecated. 

setGroupRoleAttribute

public void setGroupRoleAttribute(String groupRoleAttribute)
Deprecated. 

setGroupSearchBase

public void setGroupSearchBase(String groupSearchBase)
Deprecated. 

setGroupSearchFilter

public void setGroupSearchFilter(String groupSearchFilter)
Deprecated. 

setInitialDirContextFactory

public void setInitialDirContextFactory(org.acegisecurity.ldap.InitialDirContextFactory initialDirContextFactory)
Deprecated. 

setRolePrefix

public void setRolePrefix(String rolePrefix)
Deprecated. 

setSearchSubtree

public void setSearchSubtree(boolean searchSubtree)
Deprecated. 


Copyright © 2004-2013. All Rights Reserved.