code: public void addPermission(Permission permission) {
          if ((securityManager != null) && (permission != null)) {
              permissionList.add(permission);
          }
      }
docs: If there is a Java SecurityManager create a Permission.
  
  @param permission The permission