Examples of PHYSICAL_THREAT_LEVEL


Examples of freenet.node.SecurityLevels.PHYSICAL_THREAT_LEVEL

  static final HTMLNode DOWNLOADS_LINK = QueueToadlet.DOWNLOADS_LINK;

  private static void addDownloadOptions(ToadletContext ctx, HTMLNode optionList, FreenetURI key, String mimeType,
          boolean disableFiltration, boolean dontShowFilter, NodeClientCore core) {
    PHYSICAL_THREAT_LEVEL threatLevel = core.node.securityLevels.getPhysicalThreatLevel();
    NETWORK_THREAT_LEVEL netLevel = core.node.securityLevels.getNetworkThreatLevel();
    boolean filterChecked = !(((threatLevel == PHYSICAL_THREAT_LEVEL.LOW &&
            netLevel == NETWORK_THREAT_LEVEL.LOW)) || disableFiltration);
    if((filterChecked) && mimeType != null && !mimeType.equals("application/octet-stream") &&
      !mimeType.equals("")) {
View Full Code Here

Examples of freenet.node.SecurityLevels.PHYSICAL_THREAT_LEVEL

    downloadForm.addChild("br");
    downloadForm.addChild("textarea",
            new String[] { "id", "name", "cols", "rows" },
            new String[] { "bulkDownloads", "bulkDownloads", "120", "8" });
    downloadForm.addChild("br");
    PHYSICAL_THREAT_LEVEL threatLevel = core.node.securityLevels.getPhysicalThreatLevel();
    //Force downloading to encrypted space if high/maximum threat level or if the user has disabled
    //downloading to disk.
    if(threatLevel == PHYSICAL_THREAT_LEVEL.HIGH || threatLevel == PHYSICAL_THREAT_LEVEL.MAXIMUM ||
            core.isDownloadDisabled()) {
      downloadForm.addChild("input",
View Full Code Here

Examples of freenet.node.SecurityLevels.PHYSICAL_THREAT_LEVEL

  public int maxBackgroundUSKFetchers() {
    return maxBackgroundUSKFetchers;
  }

  public boolean allowDownloadTo(File filename) {
    PHYSICAL_THREAT_LEVEL physicalThreatLevel = node.securityLevels.getPhysicalThreatLevel();
    if(physicalThreatLevel == PHYSICAL_THREAT_LEVEL.MAXIMUM) return false;
    synchronized(this) {
      if(downloadAllowedEverywhere) return true;
      if(includeDownloadDir && FileUtil.isParent(getDownloadsDir(), filename)) return true;
      for(File dir : downloadAllowedDirs) {
View Full Code Here

Examples of freenet.node.SecurityLevels.PHYSICAL_THREAT_LEVEL

      configName = "security-levels.physicalThreatLevel";
      confirm = "security-levels.physicalThreatLevel.confirm";
      tryConfirm = "security-levels.physicalThreatLevel.tryConfirm";
      String physicalThreatLevel = request.getPartAsStringFailsafe(configName, 128);
      PHYSICAL_THREAT_LEVEL newPhysicalLevel = SecurityLevels.parsePhysicalThreatLevel(physicalThreatLevel);
      PHYSICAL_THREAT_LEVEL oldPhysicalLevel = core.node.securityLevels.getPhysicalThreatLevel();
      if(logMINOR) Logger.minor(this, "New physical threat level: "+newPhysicalLevel+" old = "+node.securityLevels.getPhysicalThreatLevel());
      if(newPhysicalLevel != null) {
        if(newPhysicalLevel == oldPhysicalLevel && newPhysicalLevel == PHYSICAL_THREAT_LEVEL.HIGH) {
          String password = request.getPartAsStringFailsafe("masterPassword", MAX_PASSWORD_LENGTH);
          String oldPassword = request.getPartAsStringFailsafe("oldPassword", MAX_PASSWORD_LENGTH);
View Full Code Here

Examples of freenet.node.SecurityLevels.PHYSICAL_THREAT_LEVEL

            NodeL10n.getBase().getString("OperatingSystemName."+os.name())));
    if(os == FileUtil.OperatingSystem.Windows) {
      swapWarning.addChild("#", " " + WizardL10n.l10nSec("physicalThreatLevelSwapfileWindows"));
    }

    PHYSICAL_THREAT_LEVEL physicalLevel = node.securityLevels.getPhysicalThreatLevel();

    controlName = "security-levels.physicalThreatLevel";
    for(PHYSICAL_THREAT_LEVEL level : PHYSICAL_THREAT_LEVEL.values()) {
      HTMLNode input;
      if(level == physicalLevel) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.