config/src/main/java/org/springframework/security/config/annotation/authentication/configurers/ldap/LdapAuthenticationProviderConfigurer.java
protected GrantedAuthoritiesMapper getAuthoritiesMapper() throws Exception {
		if (authoritiesMapper != null) {
			return authoritiesMapper;
		}

		SimpleAuthorityMapper simpleAuthorityMapper = new SimpleAuthorityMapper();
		simpleAuthorityMapper.setPrefix(this.rolePrefix);
		simpleAuthorityMapper.afterPropertiesSet();
		this.authoritiesMapper = simpleAuthorityMapper;
		return simpleAuthorityMapper;
	}
protected GrantedAuthoritiesMapper getAuthoritiesMapper() throws Exception {
		if (authoritiesMapper != null) {
			return authoritiesMapper;
		}

		SimpleAuthorityMapper simpleAuthorityMapper = new SimpleAuthorityMapper();
		simpleAuthorityMapper.setPrefix(this.rolePrefix);
		simpleAuthorityMapper.afterPropertiesSet();
		this.authoritiesMapper = simpleAuthorityMapper;
		return simpleAuthorityMapper;
	}
Gets the {@link GrantedAuthoritiesMapper} and defaults to {@link SimpleAuthorityMapper}.

@return the {@link GrantedAuthoritiesMapper}
@throws Exception if errors in {@link SimpleAuthorityMapper#afterPropertiesSet()}