[security-dev] PicketLink 3 IDM - hasRole Checking
darran.lofthouse at jboss.com
Mon Dec 3 04:12:32 EST 2012
On 12/02/2012 11:19 PM, Shane Bryzak wrote:
> On 12/01/2012 11:38 PM, Darran Lofthouse wrote:
>> For hasRole has there been any thought about being able to check
>> multiple roles concurrently?
>> The scenario I am thinking about here is where we want to check that a
>> user is a member of at least one role - if we have a large number of
>> roles at the moment we would need to loop and call hasRole once for each
> No, and I don't think there's much value in this. With the caching
> mechanism (that we will eventually get fully implemented) the scenario
> that you are describing will only require an actual IdentityStore lookup
> on the first call; subsequent hasRole() calls will be already pre-cached
> for maximum performance.
Do you mean the first hasRole() call will load and cache all roles? If
so that sounds fine.
>> Darran Lofthouse.
>> security-dev mailing list
>> security-dev at lists.jboss.org
> security-dev mailing list
> security-dev at lists.jboss.org
More information about the security-dev