picketbox/picketbox-core — pull request #119 by abstractj (2012-10-12 17:30:57+00:00)
Title: Allows to retrieve a collection of user role names

Hi guys, this implementation will be useful on AeroGear to check our valid roles like this:

if (identity.isLoggedIn()) {
hasRoles = identity.getUserContext().getRoleNames().containsAll(roles);
}