| Creates a GrantedAuthority from a role attribute. Override to customize
authority object creation.
The default implementation converts string attributes to roles, making use of the rolePrefix
and convertToUpperCase properties. Non-String attributes are ignored.
Parameters: role - the attribute returned from the authority to be added to the list of authorities for the user, or nullif this attribute should be ignored. |