return userName;
}
};
//Validate the roles
IRoleValidator roleValidator = (IRoleValidator) options.get(GeneralConstants.ROLE_VALIDATOR);
boolean validRole = roleValidator.userInRole(principal, roles);
if(!validRole)
{
if(trace)
log.trace("Invalid role:" + roles);
principal = null;