|
Spring Security Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.security.authoritymapping.MapBasedAttributes2GrantedAuthoritiesMapper
public class MapBasedAttributes2GrantedAuthoritiesMapper
This class implements the Attributes2GrantedAuthoritiesMapper and MappableAttributesRetriever interfaces based on the supplied Map. It supports both one-to-one and one-to-many mappings. The granted authorities to map to can be supplied either as a String or as a GrantedAuthority object.
Constructor Summary | |
---|---|
MapBasedAttributes2GrantedAuthoritiesMapper()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
Check whether all properties have been set to correct values, and do some preprocessing. |
Map |
getAttributes2grantedAuthoritiesMap()
|
GrantedAuthority[] |
getGrantedAuthorities(String[] attributes)
Map the given array of attributes to Spring Security GrantedAuthorities. |
String[] |
getMappableAttributes()
Implementations of this method should return a list of all string attributes which can be mapped to GrantedAuthoritys. |
String |
getStringSeparator()
|
void |
setAttributes2grantedAuthoritiesMap(Map attributes2grantedAuthoritiesMap)
|
void |
setStringSeparator(String stringSeparator)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MapBasedAttributes2GrantedAuthoritiesMapper()
Method Detail |
---|
public void afterPropertiesSet()
afterPropertiesSet
in interface InitializingBean
public GrantedAuthority[] getGrantedAuthorities(String[] attributes)
getGrantedAuthorities
in interface Attributes2GrantedAuthoritiesMapper
public Map getAttributes2grantedAuthoritiesMap()
public void setAttributes2grantedAuthoritiesMap(Map attributes2grantedAuthoritiesMap)
attributes2grantedAuthoritiesMap
- The attributes2grantedAuthoritiesMap to set.public String[] getMappableAttributes()
MappableAttributesRetriever
getMappableAttributes
in interface MappableAttributesRetriever
MappableAttributesRetriever.getMappableAttributes()
public String getStringSeparator()
public void setStringSeparator(String stringSeparator)
stringSeparator
- The stringSeparator to set.
|
Spring Security Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |