Hello, the following method,
private Collection getPrincipalAuthorities() {
SecureContext context = ((SecureContext)
ContextHolder.getContext());
if (null == context) {
return Collections.EMPTY_LIST;
}
Authentication currentUser = context.getAuthe
Shishir K. Singh wrote:
Could there be instances where currentUser.getAuthorities() returns
null.
If so, Arrays.asList(currentUser.getAuthorities()); will throw an
exception.
Most people use DaoAuthenticationProvider, and the corresponding
UserDetails interface mandates getAuthorities() as n