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