public class FixedAuthoritiesExtractor extends java.lang.Object implements AuthoritiesExtractor
AuthoritiesExtractor
. Extracts the authorities from
the map with the key authorities
. If no such value exists, a single
ROLE_USER
authority is returned.Constructor and Description |
---|
FixedAuthoritiesExtractor() |
Modifier and Type | Method and Description |
---|---|
java.util.List<org.springframework.security.core.GrantedAuthority> |
extractAuthorities(java.util.Map<java.lang.String,java.lang.Object> map)
Extract the authorities from the resource server's response.
|
public java.util.List<org.springframework.security.core.GrantedAuthority> extractAuthorities(java.util.Map<java.lang.String,java.lang.Object> map)
AuthoritiesExtractor
extractAuthorities
in interface AuthoritiesExtractor
map
- the response