public static final class LDAPSecurityRealm.AuthoritiesPopulatorImpl
extends org.acegisecurity.providers.ldap.populator.DefaultLdapAuthoritiesPopulator
LdapAuthoritiesPopulator that adds the automatic 'authenticated' role.| Constructor and Description |
|---|
AuthoritiesPopulatorImpl(org.acegisecurity.ldap.InitialDirContextFactory initialDirContextFactory,
String groupSearchBase) |
| Modifier and Type | Method and Description |
|---|---|
Set |
getAdditionalRoles(org.acegisecurity.userdetails.ldap.LdapUserDetails ldapUser) |
org.acegisecurity.GrantedAuthority |
getDefaultRole() |
Set |
getGroupMembershipRoles(String userDn,
String username)
Retrieves the group membership in two ways.
|
String |
getRolePrefix() |
boolean |
isConvertToUpperCase() |
boolean |
isGeneratingPrefixRoles() |
void |
setConvertToUpperCase(boolean convertToUpperCase) |
void |
setDefaultRole(String defaultRole) |
void |
setRolePrefix(String rolePrefix) |
public AuthoritiesPopulatorImpl(org.acegisecurity.ldap.InitialDirContextFactory initialDirContextFactory,
String groupSearchBase)
public Set getAdditionalRoles(org.acegisecurity.userdetails.ldap.LdapUserDetails ldapUser)
getAdditionalRoles in class org.acegisecurity.providers.ldap.populator.DefaultLdapAuthoritiesPopulatorpublic void setRolePrefix(String rolePrefix)
setRolePrefix in class org.acegisecurity.providers.ldap.populator.DefaultLdapAuthoritiesPopulatorpublic void setConvertToUpperCase(boolean convertToUpperCase)
setConvertToUpperCase in class org.acegisecurity.providers.ldap.populator.DefaultLdapAuthoritiesPopulatorpublic Set getGroupMembershipRoles(String userDn, String username)
getGroupMembershipRoles in class org.acegisecurity.providers.ldap.populator.DefaultLdapAuthoritiesPopulatorpublic boolean isGeneratingPrefixRoles()
public boolean isConvertToUpperCase()
public String getRolePrefix()
public org.acegisecurity.GrantedAuthority getDefaultRole()
public void setDefaultRole(String defaultRole)
setDefaultRole in class org.acegisecurity.providers.ldap.populator.DefaultLdapAuthoritiesPopulatorCopyright © 2016–2017. All rights reserved.