mayi-auth/src/main/java/com/zf1976/mayi/auth/oauth2/authorization/CustomizeJwtGrantedAuthoritiesConverter.java
@Override
    public Collection<GrantedAuthority> convert(@Nullable Jwt jwt) {
        Collection<GrantedAuthority> grantedAuthorities = new ArrayList<>();
        for (String authority : getAuthorities(jwt)) {
            grantedAuthorities.add(new SimpleGrantedAuthority(this.authorityPrefix + authority));
        }
        return grantedAuthorities;
    }
/**
     * Extract {@link GrantedAuthority}s from the given {@link Jwt}.
     *
     * @param jwt The {@link Jwt} token
     * @return The {@link GrantedAuthority authorities} read from the token scopes
     */
Extract  GrantedAuthoritys from the given  Jwt.
@param jwt The  Jwt token
@return The  GrantedAuthority authorities read from the token scopes
Extract GrantedAuthoritys from the given Jwt . @param jwt The Jwt token @return The GrantedAuthority authorities read from the token scopes
@Override
    public Collection<GrantedAuthority> convert(@Nullable Jwt jwt) {
        Collection<GrantedAuthority> grantedAuthorities = new ArrayList<>();
        for (String authority : getAuthorities(jwt)) {
            grantedAuthorities.add(new SimpleGrantedAuthority(this.authorityPrefix + authority));
        }
        return grantedAuthorities;
    }
@ Override public Collection < GrantedAuthority > convert ( @ Nullable Jwt jwt ) { Collection < GrantedAuthority > grantedAuthorities = new ArrayList < > ( ) ; for ( String authority : getAuthorities ( jwt ) ) { grantedAuthorities . add ( new SimpleGrantedAuthority ( this . authorityPrefix + authority ) ) ; } return grantedAuthorities ; }
Extract {@link GrantedAuthority}s from the given {@link Jwt}.
Extract { @link GrantedAuthority } s from the given { @link Jwt } .