test_class.declarator: service = new LdapAuthenticationService()
test_class.modifier: private
test_class.original_string: private LdapAuthenticationService service = new LdapAuthenticationService();
test_class.type: LdapAuthenticationService
test_class.var_name: service
test_class.file: plugin/staticsecurity/staticsecurity-ldap/src/test/java/org/geomajas/plugin/staticsecurity/ldap/LdapAuthenticationServiceTest.java
test_class.identifier: LdapAuthenticationServiceTest
test_class.superclass: extends LdapServerProvider
test_case.body: @Test
  	public void testUserService() throws Exception {
  		List<UserInfo> users = service.getUsers(new RoleUserFilter("testgroup"));
  		assertThat(users).isNotNull();
  		assertThat(users.size()).isEqualTo(1);
  		assertThat(users.get(0).getUserName()).isEqualTo("Joe Tester");
  		
  		users = service.getUsers(new AllUserFilter());
  		assertThat(users).isNotNull();
  		assertThat(users.size()).isEqualTo(2);
  		
  	}
test_case.class_method_signature: LdapAuthenticationServiceTest.testUserService()
test_case.full_signature: @Test public void testUserService()
test_case.identifier: testUserService
test_case.invocations: getUsers isNotNull assertThat isEqualTo assertThat size isEqualTo assertThat getUserName get getUsers isNotNull assertThat isEqualTo assertThat size
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testUserService()
focal_class.declarator: log = LoggerFactory.getLogger(LdapAuthenticationService.class)
focal_class.modifier: private final
focal_class.original_string: private final Logger log = LoggerFactory.getLogger(LdapAuthenticationService.class);
focal_class.type: Logger
focal_class.var_name: log
focal_class.declarator: serverHost
focal_class.modifier: @NotNull
  	private
focal_class.original_string: @NotNull
  	private String serverHost;
focal_class.type: String
focal_class.var_name: serverHost
focal_class.declarator: serverPort = 636
focal_class.modifier: private
focal_class.original_string: private int serverPort = 636;
focal_class.type: int
focal_class.var_name: serverPort
focal_class.declarator: allowAllSocketFactory
focal_class.modifier: private
focal_class.original_string: private boolean allowAllSocketFactory;
focal_class.type: boolean
focal_class.var_name: allowAllSocketFactory
focal_class.declarator: userDnTemplate
focal_class.modifier: @NotNull
  	private
focal_class.original_string: @NotNull
  	private String userDnTemplate;
focal_class.type: String
focal_class.var_name: userDnTemplate
focal_class.declarator: allUsersDn
focal_class.modifier: private
focal_class.original_string: private String allUsersDn;
focal_class.type: String
focal_class.var_name: allUsersDn
focal_class.declarator: givenNameAttribute
focal_class.modifier: private
focal_class.original_string: private String givenNameAttribute;
focal_class.type: String
focal_class.var_name: givenNameAttribute
focal_class.declarator: surNameAttribute
focal_class.modifier: private
focal_class.original_string: private String surNameAttribute;
focal_class.type: String
focal_class.var_name: surNameAttribute
focal_class.declarator: localeAttribute
focal_class.modifier: private
focal_class.original_string: private String localeAttribute;
focal_class.type: String
focal_class.var_name: localeAttribute
focal_class.declarator: organizationAttribute
focal_class.modifier: private
focal_class.original_string: private String organizationAttribute;
focal_class.type: String
focal_class.var_name: organizationAttribute
focal_class.declarator: divisionAttribute
focal_class.modifier: private
focal_class.original_string: private String divisionAttribute;
focal_class.type: String
focal_class.var_name: divisionAttribute
focal_class.declarator: rolesAttribute
focal_class.modifier: private
focal_class.original_string: private String rolesAttribute;
focal_class.type: String
focal_class.var_name: rolesAttribute
focal_class.declarator: defaultRole
focal_class.modifier: private
focal_class.original_string: private List<AuthorizationInfo> defaultRole;
focal_class.type: List<AuthorizationInfo>
focal_class.var_name: defaultRole
focal_class.declarator: namedRoles
focal_class.modifier: private
focal_class.original_string: private Map<String, List<NamedRoleInfo>> namedRoles;
focal_class.type: Map<String, List<NamedRoleInfo>>
focal_class.var_name: namedRoles
focal_class.declarator: ldapRoleMapping
focal_class.modifier: private
focal_class.original_string: private Map<String, Set<String>> ldapRoleMapping;
focal_class.type: Map<String, Set<String>>
focal_class.var_name: ldapRoleMapping
focal_class.declarator: ALL = Filter.createEqualityFilter("objectclass", "person")
focal_class.modifier: @Api
  	public static final
focal_class.original_string: @Api
  	public static final Filter ALL = Filter.createEqualityFilter("objectclass", "person");
focal_class.type: Filter
focal_class.var_name: ALL
focal_class.declarator: NONE = Filter.createNOTFilter(ALL)
focal_class.modifier: @Api
  	public static final
focal_class.original_string: @Api
  	public static final Filter NONE = Filter.createNOTFilter(ALL);
focal_class.type: Filter
focal_class.var_name: NONE
focal_class.declarator: DEFAULT_ROLE_NAME = "ROLE_DEFAULT"
focal_class.modifier: @Api
  	public static final
focal_class.original_string: @Api
  	public static final String DEFAULT_ROLE_NAME = "ROLE_DEFAULT";
focal_class.type: String
focal_class.var_name: DEFAULT_ROLE_NAME
focal_class.file: plugin/staticsecurity/staticsecurity-ldap/src/main/java/org/geomajas/plugin/staticsecurity/ldap/LdapAuthenticationService.java
focal_class.identifier: LdapAuthenticationService
focal_class.interfaces: implements AuthenticationService, UserDirectoryService
focal_class.class_method_signature: LdapAuthenticationService.setServerHost(String serverHost)
focal_class.full_signature: @Api public void setServerHost(String serverHost)
focal_class.identifier: setServerHost
focal_class.modifiers: @Api public
focal_class.parameters: (String serverHost)
focal_class.return: void
focal_class.signature: void setServerHost(String serverHost)
focal_class.class_method_signature: LdapAuthenticationService.setServerPort(int serverPort)
focal_class.full_signature: @Api public void setServerPort(int serverPort)
focal_class.identifier: setServerPort
focal_class.modifiers: @Api public
focal_class.parameters: (int serverPort)
focal_class.return: void
focal_class.signature: void setServerPort(int serverPort)
focal_class.class_method_signature: LdapAuthenticationService.setAllowAllSocketFactory(boolean allowAllSocketFactory)
focal_class.full_signature: @Api public void setAllowAllSocketFactory(boolean allowAllSocketFactory)
focal_class.identifier: setAllowAllSocketFactory
focal_class.modifiers: @Api public
focal_class.parameters: (boolean allowAllSocketFactory)
focal_class.return: void
focal_class.signature: void setAllowAllSocketFactory(boolean allowAllSocketFactory)
focal_class.class_method_signature: LdapAuthenticationService.setUserDnTemplate(String userDnTemplate)
focal_class.full_signature: @Api public void setUserDnTemplate(String userDnTemplate)
focal_class.identifier: setUserDnTemplate
focal_class.modifiers: @Api public
focal_class.parameters: (String userDnTemplate)
focal_class.return: void
focal_class.signature: void setUserDnTemplate(String userDnTemplate)
focal_class.class_method_signature: LdapAuthenticationService.setAllUsersDn(String allUsersDn)
focal_class.full_signature: @Api public void setAllUsersDn(String allUsersDn)
focal_class.identifier: setAllUsersDn
focal_class.modifiers: @Api public
focal_class.parameters: (String allUsersDn)
focal_class.return: void
focal_class.signature: void setAllUsersDn(String allUsersDn)
focal_class.class_method_signature: LdapAuthenticationService.setGivenNameAttribute(String givenNameAttribute)
focal_class.full_signature: @Api public void setGivenNameAttribute(String givenNameAttribute)
focal_class.identifier: setGivenNameAttribute
focal_class.modifiers: @Api public
focal_class.parameters: (String givenNameAttribute)
focal_class.return: void
focal_class.signature: void setGivenNameAttribute(String givenNameAttribute)
focal_class.class_method_signature: LdapAuthenticationService.setSurNameAttribute(String surNameAttribute)
focal_class.full_signature: @Api public void setSurNameAttribute(String surNameAttribute)
focal_class.identifier: setSurNameAttribute
focal_class.modifiers: @Api public
focal_class.parameters: (String surNameAttribute)
focal_class.return: void
focal_class.signature: void setSurNameAttribute(String surNameAttribute)
focal_class.class_method_signature: LdapAuthenticationService.setLocaleAttribute(String localeAttribute)
focal_class.full_signature: @Api public void setLocaleAttribute(String localeAttribute)
focal_class.identifier: setLocaleAttribute
focal_class.modifiers: @Api public
focal_class.parameters: (String localeAttribute)
focal_class.return: void
focal_class.signature: void setLocaleAttribute(String localeAttribute)
focal_class.class_method_signature: LdapAuthenticationService.setOrganizationAttribute(String organizationAttribute)
focal_class.full_signature: @Api public void setOrganizationAttribute(String organizationAttribute)
focal_class.identifier: setOrganizationAttribute
focal_class.modifiers: @Api public
focal_class.parameters: (String organizationAttribute)
focal_class.return: void
focal_class.signature: void setOrganizationAttribute(String organizationAttribute)
focal_class.class_method_signature: LdapAuthenticationService.setDivisionAttribute(String divisionAttribute)
focal_class.full_signature: @Api public void setDivisionAttribute(String divisionAttribute)
focal_class.identifier: setDivisionAttribute
focal_class.modifiers: @Api public
focal_class.parameters: (String divisionAttribute)
focal_class.return: void
focal_class.signature: void setDivisionAttribute(String divisionAttribute)
focal_class.class_method_signature: LdapAuthenticationService.setRolesAttribute(String rolesAttribute)
focal_class.full_signature: @Api public void setRolesAttribute(String rolesAttribute)
focal_class.identifier: setRolesAttribute
focal_class.modifiers: @Api public
focal_class.parameters: (String rolesAttribute)
focal_class.return: void
focal_class.signature: void setRolesAttribute(String rolesAttribute)
focal_class.class_method_signature: LdapAuthenticationService.getRolesAttribute()
focal_class.full_signature: public String getRolesAttribute()
focal_class.identifier: getRolesAttribute
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getRolesAttribute()
focal_class.class_method_signature: LdapAuthenticationService.getDefaultRole()
focal_class.full_signature: public List<AuthorizationInfo> getDefaultRole()
focal_class.identifier: getDefaultRole
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: List<AuthorizationInfo>
focal_class.signature: List<AuthorizationInfo> getDefaultRole()
focal_class.class_method_signature: LdapAuthenticationService.setDefaultRole(List<AuthorizationInfo> defaultRole)
focal_class.full_signature: @Api public void setDefaultRole(List<AuthorizationInfo> defaultRole)
focal_class.identifier: setDefaultRole
focal_class.modifiers: @Api public
focal_class.parameters: (List<AuthorizationInfo> defaultRole)
focal_class.return: void
focal_class.signature: void setDefaultRole(List<AuthorizationInfo> defaultRole)
focal_class.class_method_signature: LdapAuthenticationService.setRoles(Map<String, List<AuthorizationInfo>> roles)
focal_class.full_signature: @Api public void setRoles(Map<String, List<AuthorizationInfo>> roles)
focal_class.identifier: setRoles
focal_class.modifiers: @Api public
focal_class.parameters: (Map<String, List<AuthorizationInfo>> roles)
focal_class.return: void
focal_class.signature: void setRoles(Map<String, List<AuthorizationInfo>> roles)
focal_class.class_method_signature: LdapAuthenticationService.setNamedRoles(Map<String, List<NamedRoleInfo>> namedRoles)
focal_class.full_signature: @Api public void setNamedRoles(Map<String, List<NamedRoleInfo>> namedRoles)
focal_class.identifier: setNamedRoles
focal_class.modifiers: @Api public
focal_class.parameters: (Map<String, List<NamedRoleInfo>> namedRoles)
focal_class.return: void
focal_class.signature: void setNamedRoles(Map<String, List<NamedRoleInfo>> namedRoles)
focal_class.class_method_signature: LdapAuthenticationService.getNamedRoles()
focal_class.full_signature: @Api public Map<String, List<NamedRoleInfo>> getNamedRoles()
focal_class.identifier: getNamedRoles
focal_class.modifiers: @Api public
focal_class.parameters: ()
focal_class.return: Map<String, List<NamedRoleInfo>>
focal_class.signature: Map<String, List<NamedRoleInfo>> getNamedRoles()
focal_class.class_method_signature: LdapAuthenticationService.convertPassword(String user, String password)
focal_class.full_signature: @Override public String convertPassword(String user, String password)
focal_class.identifier: convertPassword
focal_class.modifiers: @Override public
focal_class.parameters: (String user, String password)
focal_class.return: String
focal_class.signature: String convertPassword(String user, String password)
focal_class.class_method_signature: LdapAuthenticationService.isAuthenticated(String user, String password)
focal_class.full_signature: @Override public UserInfo isAuthenticated(String user, String password)
focal_class.identifier: isAuthenticated
focal_class.modifiers: @Override public
focal_class.parameters: (String user, String password)
focal_class.return: UserInfo
focal_class.signature: UserInfo isAuthenticated(String user, String password)
focal_class.class_method_signature: LdapAuthenticationService.getUsers(UserFilter userFilter)
focal_class.full_signature: @Override public List<org.geomajas.security.UserInfo> getUsers(UserFilter userFilter)
focal_class.identifier: getUsers
focal_class.modifiers: @Override public
focal_class.parameters: (UserFilter userFilter)
focal_class.return: List<org.geomajas.security.UserInfo>
focal_class.signature: List<org.geomajas.security.UserInfo> getUsers(UserFilter userFilter)
focal_class.class_method_signature: LdapAuthenticationService.convert(UserFilter filter)
focal_class.full_signature: @Api public Filter convert(UserFilter filter)
focal_class.identifier: convert
focal_class.modifiers: @Api public
focal_class.parameters: (UserFilter filter)
focal_class.return: Filter
focal_class.signature: Filter convert(UserFilter filter)
focal_class.class_method_signature: LdapAuthenticationService.execute(SearchRequest request, String bindDN, String password)
focal_class.full_signature: protected SearchResult execute(SearchRequest request, String bindDN, String password)
focal_class.identifier: execute
focal_class.modifiers: protected
focal_class.parameters: (SearchRequest request, String bindDN, String password)
focal_class.return: SearchResult
focal_class.signature: SearchResult execute(SearchRequest request, String bindDN, String password)
focal_class.class_method_signature: LdapAuthenticationService.createSearchRequest(String searchDN)
focal_class.full_signature: private SearchRequest createSearchRequest(String searchDN)
focal_class.identifier: createSearchRequest
focal_class.modifiers: private
focal_class.parameters: (String searchDN)
focal_class.return: SearchRequest
focal_class.signature: SearchRequest createSearchRequest(String searchDN)
focal_class.class_method_signature: LdapAuthenticationService.getUserInfo(SearchResultEntry entry)
focal_class.full_signature: private UserInfo getUserInfo(SearchResultEntry entry)
focal_class.identifier: getUserInfo
focal_class.modifiers: private
focal_class.parameters: (SearchResultEntry entry)
focal_class.return: UserInfo
focal_class.signature: UserInfo getUserInfo(SearchResultEntry entry)
focal_class.class_method_signature: LdapAuthenticationService.getRoles(SearchResultEntry entry)
focal_class.full_signature: private List<NamedRoleInfo> getRoles(SearchResultEntry entry)
focal_class.identifier: getRoles
focal_class.modifiers: private
focal_class.parameters: (SearchResultEntry entry)
focal_class.return: List<NamedRoleInfo>
focal_class.signature: List<NamedRoleInfo> getRoles(SearchResultEntry entry)
focal_class.class_method_signature: LdapAuthenticationService.addAttribute(List<String> attributes, String attribute)
focal_class.full_signature: private void addAttribute(List<String> attributes, String attribute)
focal_class.identifier: addAttribute
focal_class.modifiers: private
focal_class.parameters: (List<String> attributes, String attribute)
focal_class.return: void
focal_class.signature: void addAttribute(List<String> attributes, String attribute)
focal_method.body: @Override
  	public List<org.geomajas.security.UserInfo> getUsers(UserFilter userFilter) {
  		List<org.geomajas.security.UserInfo> users = new ArrayList<org.geomajas.security.UserInfo>();
  		if (allUsersDn == null) {
  			log.warn("Getting users from LDAP requires configuration of allUsersDn property");
  		} else {
  			SearchRequest request = createSearchRequest(allUsersDn);
  			LdapFilterVisitor visitor = new LdapFilterVisitor();
  			Filter ldapFilter = (Filter) userFilter.accept(visitor, null);
  			if (ldapFilter != null) {
  				Filter f = request.getFilter();
  				request.setFilter(Filter.createANDFilter(f, ldapFilter));
  			}
  			SearchResult result = execute(request, null, null);
  			if (result != null) {
  				for (SearchResultEntry entry : result.getSearchEntries()) {
  					users.add(getUserInfo(entry));
  				}
  			}
  		}
  		return users;
  	}
focal_method.class_method_signature: LdapAuthenticationService.getUsers(UserFilter userFilter)
focal_method.full_signature: @Override public List<org.geomajas.security.UserInfo> getUsers(UserFilter userFilter)
focal_method.identifier: getUsers
focal_method.invocations: warn createSearchRequest accept getFilter setFilter createANDFilter execute getSearchEntries add getUserInfo
focal_method.modifiers: @Override public
focal_method.parameters: (UserFilter userFilter)
focal_method.return: List<org.geomajas.security.UserInfo>
focal_method.signature: List<org.geomajas.security.UserInfo> getUsers(UserFilter userFilter)