oauth2/oauth2-resource-server/src/main/java/org/springframework/security/oauth2/server/resource/authentication/JwtGrantedAuthoritiesConverter.java
@Override
	public Collection<GrantedAuthority> convert(Jwt jwt) {
		return getScopes(jwt)
				.stream()
				.map(authority -> SCOPE_AUTHORITY_PREFIX + authority)
				.map(SimpleGrantedAuthority::new)
				.collect(Collectors.toList());
	}
@Override
	public Collection<GrantedAuthority> convert(Jwt jwt) {
		return getScopes(jwt)
				.stream()
				.map(authority -> SCOPE_AUTHORITY_PREFIX + authority)
				.map(SimpleGrantedAuthority::new)
				.collect(Collectors.toList());
	}
Extracts the authorities
@param jwt The {@link Jwt} token
@return The {@link GrantedAuthority authorities} read from the token scopes