class MachineTokenAuthorizedSubject extends AuthorizedSubject {

  @Override
  public boolean hasPermission(String domain, String instance, String action) {
    if (domain.equals(WorkspaceDomain.DOMAIN_ID) && !instance.equals(claimsWorkspaceId)) {
      return false;
    }
    return super.hasPermission(domain, instance, action);
  }

  public  MachineTokenAuthorizedSubject(
      Subject baseSubject, PermissionChecker permissionChecker, String claimsWorkspaceId);

}