public class MapBasedAttributes2GrantedAuthoritiesMapper extends Object implements Attributes2GrantedAuthoritiesMapper, MappableAttributesRetriever, InitializingBean
| Constructor and Description |
|---|
MapBasedAttributes2GrantedAuthoritiesMapper() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
Map<String,Collection<GrantedAuthority>> |
getAttributes2grantedAuthoritiesMap() |
List<GrantedAuthority> |
getGrantedAuthorities(Collection<String> attributes)
Map the given array of attributes to Spring Security GrantedAuthorities.
|
Set<String> |
getMappableAttributes()
Implementations of this method should return a set of all string attributes which
can be mapped to GrantedAuthoritys.
|
String |
getStringSeparator() |
void |
setAttributes2grantedAuthoritiesMap(Map<?,?> attributes2grantedAuthoritiesMap) |
void |
setStringSeparator(String stringSeparator) |
public MapBasedAttributes2GrantedAuthoritiesMapper()
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface InitializingBeanExceptionpublic List<GrantedAuthority> getGrantedAuthorities(Collection<String> attributes)
getGrantedAuthorities in interface Attributes2GrantedAuthoritiesMapperattributes - the attributes to be mappedpublic Map<String,Collection<GrantedAuthority>> getAttributes2grantedAuthoritiesMap()
public void setAttributes2grantedAuthoritiesMap(Map<?,?> attributes2grantedAuthoritiesMap)
attributes2grantedAuthoritiesMap - The attributes2grantedAuthoritiesMap to
set.public Set<String> getMappableAttributes()
MappableAttributesRetrievergetMappableAttributes in interface MappableAttributesRetrieverMappableAttributesRetriever.getMappableAttributes()public String getStringSeparator()
public void setStringSeparator(String stringSeparator)
stringSeparator - The stringSeparator to set.