Class SimpleMappableAttributesRetriever
java.lang.Object
org.springframework.security.core.authority.mapping.SimpleMappableAttributesRetriever
- All Implemented Interfaces:
MappableAttributesRetriever
public class SimpleMappableAttributesRetriever
extends Object
implements MappableAttributesRetriever
This class implements the MappableAttributesRetriever interface by just returning a
list of mappable attributes as previously set using the corresponding setter method.
- Since:
- 2.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionImplementations of this method should return a set of all string attributes which can be mapped to GrantedAuthoritys.void
setMappableAttributes
(Set<String> aMappableRoles)
-
Constructor Details
-
SimpleMappableAttributesRetriever
public SimpleMappableAttributesRetriever()
-
-
Method Details
-
getMappableAttributes
Description copied from interface:MappableAttributesRetriever
Implementations of this method should return a set of all string attributes which can be mapped to GrantedAuthoritys.- Specified by:
getMappableAttributes
in interfaceMappableAttributesRetriever
- Returns:
- set of all mappable roles
-
setMappableAttributes
-