public class AADJwtGrantedAuthoritiesConverter
extends Object
implements org.springframework.core.convert.converter.Converter<org.springframework.security.oauth2.jwt.Jwt,Collection<org.springframework.security.core.GrantedAuthority>>
Extracts the GrantedAuthoritys from scope attributes typically found in a Jwt.
Methods inherited from interface org.springframework.core.convert.converter.Converter
andThen
Constructor Detail
AADJwtGrantedAuthoritiesConverter
public AADJwtGrantedAuthoritiesConverter()
AADJwtGrantedAuthoritiesConverter
public AADJwtGrantedAuthoritiesConverter(Map<String,String> claimToAuthorityPrefixMap)
Method Detail
convert
public Collection<org.springframework.security.core.GrantedAuthority> convert(org.springframework.security.oauth2.jwt.Jwt jwt)
Specified by:
convert in interface org.springframework.core.convert.converter.Converter<org.springframework.security.oauth2.jwt.Jwt,Collection<org.springframework.security.core.GrantedAuthority>>