class UserSourceRealm extends AuthorizingRealm {

  @Override
  public boolean isPermittedAll(PrincipalCollection subjectPrincipal, String... requiredPermissions) {
    if (requiredPermissions.length == 0) {
      return true;
    }
    List<Permission> required = getPermissionResolver().resolvePermissions(requiredPermissions);
    return isPermittedAll(subjectPrincipal, required);
  }

  public  UserSourceRealm(UserSource userSource);

}