Class FixedAuthoritiesExtractor
- java.lang.Object
- org.springframework.boot.autoconfigure.security.oauth2.resource.FixedAuthoritiesExtractor
- All Implemented Interfaces:
AuthoritiesExtractor
public class FixedAuthoritiesExtractor extends Object implements AuthoritiesExtractor
Default implementation ofAuthoritiesExtractor
. Extracts the authorities from the map with the keyauthorities
. If no such value exists, a singleROLE_USER
authority is returned.- Since:
- 1.3.0
Constructor Summary
Constructors Constructor Description FixedAuthoritiesExtractor()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<org.springframework.security.core.GrantedAuthority>
extractAuthorities(Map<String,Object> map)
Extract the authorities from the resource server's response.
Constructor Detail
FixedAuthoritiesExtractor
public FixedAuthoritiesExtractor()
Method Detail
extractAuthorities
public List<org.springframework.security.core.GrantedAuthority> extractAuthorities(Map<String,Object> map)
Description copied from interface:AuthoritiesExtractor
Extract the authorities from the resource server's response.- Specified by:
extractAuthorities
in interfaceAuthoritiesExtractor
- Parameters:
map
- the response- Returns:
- the extracted authorities