|
@@ -320,32 +320,13 @@ public class DefaultLdapAuthoritiesPopulator implements LdapAuthoritiesPopulator
|
|
return ldapTemplate;
|
|
return ldapTemplate;
|
|
}
|
|
}
|
|
|
|
|
|
- /**
|
|
|
|
- * Returns the default role
|
|
|
|
- * Method available so that classes extending this can override
|
|
|
|
- * @return the default role used
|
|
|
|
- * @see {@link #setDefaultRole(String)}
|
|
|
|
- */
|
|
|
|
- protected GrantedAuthority getDefaultRole() {
|
|
|
|
- return defaultRole;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- /**
|
|
|
|
- * Returns the search controls
|
|
|
|
- * Method available so that classes extending this can override the search controls used
|
|
|
|
- * @return the search controls
|
|
|
|
- */
|
|
|
|
- protected SearchControls getSearchControls() {
|
|
|
|
- return searchControls;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
/**
|
|
/**
|
|
* Returns the attribute name of the LDAP attribute that will be mapped to the role name
|
|
* Returns the attribute name of the LDAP attribute that will be mapped to the role name
|
|
* Method available so that classes extending this can override
|
|
* Method available so that classes extending this can override
|
|
* @return the attribute name used for role mapping
|
|
* @return the attribute name used for role mapping
|
|
* @see {@link #setGroupRoleAttribute(String)}
|
|
* @see {@link #setGroupRoleAttribute(String)}
|
|
*/
|
|
*/
|
|
- protected String getGroupRoleAttribute() {
|
|
|
|
|
|
+ protected final String getGroupRoleAttribute() {
|
|
return groupRoleAttribute;
|
|
return groupRoleAttribute;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -355,7 +336,7 @@ public class DefaultLdapAuthoritiesPopulator implements LdapAuthoritiesPopulator
|
|
* @return the search filter
|
|
* @return the search filter
|
|
* @see {@link #setGroupSearchFilter(String)}
|
|
* @see {@link #setGroupSearchFilter(String)}
|
|
*/
|
|
*/
|
|
- protected String getGroupSearchFilter() {
|
|
|
|
|
|
+ protected final String getGroupSearchFilter() {
|
|
return groupSearchFilter;
|
|
return groupSearchFilter;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -365,7 +346,7 @@ public class DefaultLdapAuthoritiesPopulator implements LdapAuthoritiesPopulator
|
|
* @return the role prefix
|
|
* @return the role prefix
|
|
* @see {@link #setRolePrefix(String)}
|
|
* @see {@link #setRolePrefix(String)}
|
|
*/
|
|
*/
|
|
- protected String getRolePrefix() {
|
|
|
|
|
|
+ protected final String getRolePrefix() {
|
|
return rolePrefix;
|
|
return rolePrefix;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -375,9 +356,26 @@ public class DefaultLdapAuthoritiesPopulator implements LdapAuthoritiesPopulator
|
|
* @return true if role names are converted to uppercase.
|
|
* @return true if role names are converted to uppercase.
|
|
* @see {@link #setConvertToUpperCase(boolean)}
|
|
* @see {@link #setConvertToUpperCase(boolean)}
|
|
*/
|
|
*/
|
|
- protected boolean isConvertToUpperCase() {
|
|
|
|
|
|
+ protected final boolean isConvertToUpperCase() {
|
|
return convertToUpperCase;
|
|
return convertToUpperCase;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * Returns the default role
|
|
|
|
+ * Method available so that classes extending this can override
|
|
|
|
+ * @return the default role used
|
|
|
|
+ * @see {@link #setDefaultRole(String)}
|
|
|
|
+ */
|
|
|
|
+ private GrantedAuthority getDefaultRole() {
|
|
|
|
+ return defaultRole;
|
|
|
|
+ }
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * Returns the search controls
|
|
|
|
+ * Method available so that classes extending this can override the search controls used
|
|
|
|
+ * @return the search controls
|
|
|
|
+ */
|
|
|
|
+ private SearchControls getSearchControls() {
|
|
|
|
+ return searchControls;
|
|
|
|
+ }
|
|
}
|
|
}
|