[Acegisecurity-developer] AuthorizeTag.java

2005-03-24 Thread Shishir K. Singh
Hello, the following method, private Collection getPrincipalAuthorities() { SecureContext context = ((SecureContext) ContextHolder.getContext()); if (null == context) { return Collections.EMPTY_LIST; } Authentication currentUser = context.getAuthe

Re: [Acegisecurity-developer] AuthorizeTag.java

2005-03-25 Thread Ben Alex
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