Class EditBean

java.lang.Object
net.i2p.i2ptunnel.web.IndexBean
net.i2p.i2ptunnel.web.EditBean

public class EditBean extends IndexBean
Ugly little accessor for the edit page Warning - This class is not part of the i2ptunnel API, it has been moved from the jar to the war. Usage by classes outside of i2ptunnel.war is deprecated.
  • Constructor Details

    • EditBean

      public EditBean()
  • Method Details

    • staticIsClient

      public static boolean staticIsClient(int tunnel)
      Is it a client or server in the UI and I2P side? Note that a streamr client is a UI and I2P client but a server on the localhost side. Note that a streamr server is a UI and I2P server but a client on the localhost side.
    • getTargetHost

      public String getTargetHost(int tunnel)
    • getTargetPort

      public String getTargetPort(int tunnel)
    • getPrivateKeyFile

      public String getPrivateKeyFile(int tunnel)
    • getAltPrivateKeyFile

      public String getAltPrivateKeyFile(int tunnel)
      Returns:
      path or ""
      Since:
      0.9.30
    • getSigningPrivateKey

      public SigningPrivateKey getSigningPrivateKey(int tunnel)
      Returns:
      key or null
      Since:
      0.9.26
    • startAutomatically

      public boolean startAutomatically(int tunnel)
    • shouldDelay

      public boolean shouldDelay(int tunnel)
    • isInteractive

      public boolean isInteractive(int tunnel)
    • getTunnelDepth

      public int getTunnelDepth(int tunnel, int defaultLength)
      in or both in/out
    • getTunnelQuantity

      public int getTunnelQuantity(int tunnel, int defaultQuantity)
      in or both in/out
    • getTunnelBackupQuantity

      public int getTunnelBackupQuantity(int tunnel, int defaultBackupQuantity)
      in or both in/out
    • getTunnelVariance

      public int getTunnelVariance(int tunnel, int defaultVariance)
      in or both in/out
    • getTunnelDepthOut

      public int getTunnelDepthOut(int tunnel, int defaultLength)
      Since:
      0.9.33
    • getTunnelQuantityOut

      public int getTunnelQuantityOut(int tunnel, int defaultQuantity)
      Since:
      0.9.33
    • getTunnelBackupQuantityOut

      public int getTunnelBackupQuantityOut(int tunnel, int defaultBackupQuantity)
      Since:
      0.9.33
    • getTunnelVarianceOut

      public int getTunnelVarianceOut(int tunnel, int defaultVariance)
      Since:
      0.9.33
    • getReduce

      public boolean getReduce(int tunnel)
    • getReduceCount

      public int getReduceCount(int tunnel)
    • getReduceTime

      public int getReduceTime(int tunnel)
    • getCert

      public int getCert(int tunnel)
    • getEffort

      public int getEffort(int tunnel)
    • getSigner

      public String getSigner(int tunnel)
    • getEncrypt

      public boolean getEncrypt(int tunnel)
    • getEncryptMode

      public String getEncryptMode(int tunnel)
      Since:
      0.9.40
    • getBlindedPassword

      public String getBlindedPassword(int tunnel)
      Since:
      0.9.40
    • getClientAuths

      public List<String> getClientAuths(int tunnel, boolean isDH)
      List of b64 name : b64key Pubkeys for DH, privkeys for PSK
      Parameters:
      isDH - true for DH, false for PSK
      Returns:
      non-null
      Since:
      0.9.41
    • getSigType

      public int getSigType(int tunnel, String newTunnelType)
      Parameters:
      newTunnelType - used if tunnel < 0
      Since:
      0.9.12
    • isSigTypeAvailable

      public boolean isSigTypeAvailable(int code)
      Since:
      0.9.12
    • canChangeSigType

      public boolean canChangeSigType(int tunnel)
      Since:
      0.9.33
    • canChangeEncType

      public boolean canChangeEncType(int tunnel)
      Since:
      0.9.46
    • canChangePort

      public boolean canChangePort(int tunnel)
      Since:
      0.9.46
    • hasEncType

      public boolean hasEncType(int tunnel, int encType)
      Parameters:
      encType - code
      Since:
      0.9.44
    • getKey1

      public String getKey1(int tunnel)
      Random keys, hidden in forms
      Since:
      0.9.18
    • getKey2

      public String getKey2(int tunnel)
    • getKey3

      public String getKey3(int tunnel)
    • getKey4

      public String getKey4(int tunnel)
    • getDCC

      public boolean getDCC(int tunnel)
      Since:
      0.8.9
    • getEncryptKey

      public String getEncryptKey(int tunnel)
    • getAccessMode

      public String getAccessMode(int tunnel)
    • getAccessList

      public String getAccessList(int tunnel)
    • getFilterDefinition

      public String getFilterDefinition(int tunnel)
      Since:
      0.9.40
    • getJumpList

      public String getJumpList(int tunnel)
    • getClose

      public boolean getClose(int tunnel)
    • getCloseTime

      public int getCloseTime(int tunnel)
    • getNewDest

      public boolean getNewDest(int tunnel)
    • getPersistentClientKey

      public boolean getPersistentClientKey(int tunnel)
    • getDelayOpen

      public boolean getDelayOpen(int tunnel)
    • getAllowUserAgent

      public boolean getAllowUserAgent(int tunnel)
      Since:
      0.9.14
    • getAllowReferer

      public boolean getAllowReferer(int tunnel)
      Since:
      0.9.14
    • getAllowAccept

      public boolean getAllowAccept(int tunnel)
      Since:
      0.9.14
    • getAllowInternalSSL

      public boolean getAllowInternalSSL(int tunnel)
      Since:
      0.9.14
    • getMultihome

      public boolean getMultihome(int tunnel)
      Since:
      0.9.18
    • getUserAgents

      public String getUserAgents(int tunnel)
      Since:
      0.9.25
    • getProxyAuth

      public boolean getProxyAuth(int tunnel)
      all proxy auth @since 0.8.2
    • getOutproxyAuth

      public boolean getOutproxyAuth(int tunnel)
    • getOutproxyUsername

      public String getOutproxyUsername(int tunnel)
    • getOutproxyPassword

      public String getOutproxyPassword(int tunnel)
    • getSslProxies

      public String getSslProxies(int tunnel)
      Since:
      0.9.11
    • getUseOutproxyPlugin

      public boolean getUseOutproxyPlugin(int tunnel)
      Default true
      Since:
      0.9.11
    • getOutproxyType

      public String getOutproxyType(int tunnel)
      Returns:
      "connect" or "socks", default depends on tunnel type
      Since:
      0.9.57
    • getLimitMinute

      public int getLimitMinute(int tunnel)
      all of these are @since 0.8.3
    • getLimitHour

      public int getLimitHour(int tunnel)
    • getLimitDay

      public int getLimitDay(int tunnel)
    • getTotalMinute

      public int getTotalMinute(int tunnel)
    • getTotalHour

      public int getTotalHour(int tunnel)
    • getTotalDay

      public int getTotalDay(int tunnel)
    • getMaxStreams

      public int getMaxStreams(int tunnel)
    • getPostMax

      public int getPostMax(int tunnel)
      POST limits
      Since:
      0.9.9
    • getPostTotalMax

      public int getPostTotalMax(int tunnel)
    • getPostCheckTime

      public int getPostCheckTime(int tunnel)
    • getPostBanTime

      public int getPostBanTime(int tunnel)
    • getPostTotalBanTime

      public int getPostTotalBanTime(int tunnel)
    • getUniqueLocal

      public boolean getUniqueLocal(int tunnel)
      Since:
      0.9.13
    • isRouterContext

      public boolean isRouterContext()
      Since:
      0.8.3
    • interfaceSet

      public Set<String> interfaceSet()
      Since:
      0.8.3
    • isAdvanced

      public boolean isAdvanced()
      Since:
      0.9.12
    • getI2CPHost

      public String getI2CPHost(int tunnel)
    • getI2CPPort

      public String getI2CPPort(int tunnel)
    • getCustomOptions

      public String getCustomOptions(int tunnel)
    • getQuantityOptions

      public String getQuantityOptions(int tunnel, int mode)
      Parameters:
      mode - 0=both, 1=in, 2=out
      Since:
      0.9.7
    • unlessAdvanced

      public String unlessAdvanced(String s)
      Returns:
      translated s or ""
      Since:
      0.9.47