public class EditBean extends IndexBean
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 and Description |
|---|
EditBean()Default constructor. |
| Modifier and Type | Method and Description |
|---|---|
boolean | canChangeEncType(int tunnel)Returns whether the tunnel encryption type can be changed. |
boolean | canChangePort(int tunnel)Returns whether the tunnel port setting can be changed. |
boolean | canChangeSigType(int tunnel)Returns whether the tunnel signature type can be changed. |
String | getAccessList(int tunnel)The access list for the tunnel. |
String | getAccessMode(int tunnel)The access mode for the tunnel. |
boolean | getAllowAccept(int tunnel)Returns whether Accept header passthrough is allowed. |
boolean | getAllowInternalSSL(int tunnel)Returns whether internal SSL connections are allowed. |
boolean | getAllowReferer(int tunnel)Returns whether Referer header passthrough is allowed. |
boolean | getAllowUserAgent(int tunnel)Returns whether User-Agent header passthrough is allowed. |
String | getAltPrivateKeyFile(int tunnel)The alternate private key file for the tunnel. |
String | getBlindedPassword(int tunnel)Returns the blinded password for the tunnel. |
int | getCert(int tunnel)The certificate for the tunnel. |
List<String> | getClientAuths(int tunnel,
boolean isDH)List of b64 name : b64key
Pubkeys for DH, privkeys for PSK |
boolean | getClose(int tunnel)Whether the tunnel should close on idle. |
int | getCloseTime(int tunnel)The close time in minutes for the tunnel. |
String | getCustomOptions(int tunnel)The custom options string for the tunnel. |
boolean | getDCC(int tunnel)Whether DCC is enabled for the tunnel. |
boolean | getDelayOpen(int tunnel)Whether the tunnel open should be delayed. |
int | getEffort(int tunnel)The encryption effort for the tunnel. |
boolean | getEncrypt(int tunnel)Whether encryption is enabled for the tunnel. |
String | getEncryptKey(int tunnel)The encryption key for the tunnel. |
String | getEncryptMode(int tunnel)Returns the encryption mode for the tunnel. |
String | getFilterDefinition(int tunnel)Returns the filter definition for the tunnel. |
String | getI2CPHost(int tunnel)The I2CP host for the tunnel. |
String | getI2CPPort(int tunnel)The I2CP port for the tunnel. |
String | getJumpList(int tunnel)The jump list for the tunnel. |
String | getKey1(int tunnel)Returns the encrypted inbound random key, hidden in forms. |
String | getKey2(int tunnel)The encrypted outbound random key. |
String | getKey3(int tunnel)The encrypted lease set signing private key. |
String | getKey4(int tunnel)The encrypted lease set private key. |
int | getLimitDay(int tunnel)The per-day limit for the tunnel. |
int | getLimitHour(int tunnel)The per-hour limit for the tunnel. |
int | getLimitMinute(int tunnel)The per-minute limit for the tunnel. |
int | getMaxStreams(int tunnel)The maximum number of streams for the tunnel. |
boolean | getMultihome(int tunnel)Whether multihoming is enabled. |
boolean | getNewDest(int tunnel)Whether a new destination should be created. |
boolean | getOutproxyAuth(int tunnel)Whether outproxy authentication is enabled. |
String | getOutproxyPassword(int tunnel)The outproxy password. |
String | getOutproxyType(int tunnel)The outproxy type. |
String | getOutproxyUsername(int tunnel)The outproxy username. |
boolean | getPersistentClientKey(int tunnel)Whether the client key should be persistent. |
int | getPostBanTime(int tunnel)The POST ban time for the tunnel. |
int | getPostCheckTime(int tunnel)The POST check time for the tunnel. |
int | getPostMax(int tunnel)POST limits |
int | getPostTotalBanTime(int tunnel)The POST total ban time for the tunnel. |
int | getPostTotalMax(int tunnel)The POST total max for the tunnel. |
String | getPrivateKeyFile(int tunnel)The private key file for the tunnel. |
boolean | getProxyAuth(int tunnel)Whether proxy authentication is enabled. |
String | getQuantityOptions(int tunnel,
int mode)The quantity options for the tunnel, as HTML. |
boolean | getReduce(int tunnel)Whether the tunnel should reduce on idle. |
int | getReduceCount(int tunnel)The reduce count for the tunnel. |
int | getReduceTime(int tunnel)The reduce time in minutes for the tunnel. |
int | getShutdownDelayMax(int tunnel)The maximum shutdown delay in seconds for server tunnels. |
int | getShutdownDelayMin(int tunnel)The minimum shutdown delay in seconds for server tunnels. |
String | getSigner(int tunnel)The signer for the tunnel. |
SigningPrivateKey | getSigningPrivateKey(int tunnel)The signing private key for the tunnel. |
int | getSigType(int tunnel,
String newTunnelType)Returns the signature type for the tunnel. |
String | getSslProxies(int tunnel)The SSL proxies string. |
int | getStartupDelayMax(int tunnel)The maximum startup delay in seconds for server tunnels. |
int | getStartupDelayMin(int tunnel)The minimum startup delay in seconds for server tunnels. |
String | getTargetHost(int tunnel)The target host for the tunnel. |
String | getTargetPort(int tunnel)The target port for the tunnel, or empty string if none. |
int | getTotalDay(int tunnel)The per-day total for the tunnel. |
int | getTotalHour(int tunnel)The per-hour total for the tunnel. |
int | getTotalMinute(int tunnel)The per-minute total for the tunnel. |
int | getTunnelBackupQuantity(int tunnel,
int defaultBackupQuantity)Gets the backup tunnel quantity for inbound or both in/out. |
int | getTunnelBackupQuantityOut(int tunnel,
int defaultBackupQuantity)Returns the outbound backup tunnel quantity. |
int | getTunnelDepth(int tunnel,
int defaultLength)Gets the tunnel depth (number of hops) for inbound tunnels. |
int | getTunnelDepthOut(int tunnel,
int defaultLength)Returns the outbound tunnel depth. |
int | getTunnelQuantity(int tunnel,
int defaultQuantity)Gets the tunnel quantity for inbound or both in/out. |
int | getTunnelQuantityOut(int tunnel,
int defaultQuantity)Returns the outbound tunnel quantity. |
int | getTunnelVariance(int tunnel,
int defaultVariance)Gets the tunnel variance for inbound or both in/out. |
int | getTunnelVarianceOut(int tunnel,
int defaultVariance)Returns the outbound tunnel variance. |
boolean | getUniqueLocal(int tunnel)Whether unique local addresses should be used. |
boolean | getUseOutproxyPlugin(int tunnel)Whether the outproxy plugin should be used. |
String | getUserAgents(int tunnel)The user agents string. |
boolean | hasEncType(int tunnel,
int encType)Returns whether the tunnel supports the specified encryption type. |
Set<String> | interfaceSet()The set of network interfaces. |
boolean | isAdvanced()Whether advanced mode is enabled. |
boolean | isInteractive(int tunnel)Whether the tunnel is interactive (requires immediate response). |
boolean | isRouterContext()Whether running in router context. |
boolean | isSigTypeAvailable(int code)Returns whether the given signature type is available. |
boolean | shouldDelay(int tunnel)Whether the tunnel connection should be delayed until the first client connects. |
boolean | startAutomatically(int tunnel)Whether the tunnel is configured to start when the router starts. |
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. |
String | unlessAdvanced(String s)The translated string wrapped in parentheses, or empty in advanced mode. |
_t, encrypt, getAltDestHashBase32, getAltDestination, getAltDestinationBase64, getClientDestination, getClientInterface, getClientPort, getClientPort2, getController, getControllerNumbers, getDestHashBase32, getDestination, getDestinationBase64, getEncryptedBase32, getInternalType, getIsOfflineKeys, getIsUsingOutproxyPlugin, getLastMessageID, getMessages, getNextNonce, getNextNonce, getRemainingStartupDelay, getServerTarget, getSharedClient, getSpoofedHost, getTheme, getThemeName, getTunnelCount, getTunnelDescription, getTunnelName, getTunnelStatus, getTunnelType, getType, getTypeName, haveNonce, haveNonce, isClient, isClient, isInitialized, isRejectInproxy, isRejectReferer, isRejectUserAgents, isServer, isServerTargetLinkValid, isSharedClient, isSSLEnabled, isValidIRCServer, ngettext, setAccessList, setAccessMode, setAction, setAddClient, setAllowAccept, setAllowInternalSSL, setAllowReferer, setAllowUserAgent, setAltPrivKeyFile, setCert, setClientHost, setclientKey, setClientport, setClose, setCloseTime, setConnectDelay, setDCC, setDelayOpen, setEncrypt, setEncryptKey, setEncryptMode, setEncType, setFilterDefinition, setJumpList, setKey1, setKey2, setKey3, setKey4, setLimitDay, setLimitHour, setLimitMinute, setMaxStreams, setMsgid, setMultihome, setNewClientKey, setNewDest, setNofilter_blindedPassword, setNofilter_clientName, setNofilter_customOptions, setNofilter_description, setNofilter_name, setNofilter_newClientName, setNofilter_outproxyPassword, setNofilter_proxyPassword, setNonce, setOutproxyAuth, setOutproxyType, setOutproxyUsername, setPort, setPostBanTime, setPostCheckTime, setPostMax, setPostTotalBanTime, setPostTotalMax, setPrivKeyFile, setProfile, setProxyAuth, setProxyList, setProxyUsername, setReachableBy, setReduce, setReduceCount, setReduceTime, setRejectInproxy, setRejectReferer, setRejectUserAgents, setRemoveConfirm, setRevokeClient, setSession, setShared, setShared, setShutdownDelayMax, setShutdownDelayMin, setSigner, setSigType, setSpoofedHost, setSslProxies, setStartOnLoad, setStartupDelayMax, setStartupDelayMin, setTargetDestination, setTargetHost, setTargetPort, setTotalDay, setTotalHour, setTotalMinute, setTunnel, setTunnelBackupQuantity, setTunnelBackupQuantityOut, setTunnelDepth, setTunnelDepthOut, setTunnelQuantity, setTunnelQuantityOut, setTunnelVariance, setTunnelVarianceOut, setType, setUniqueLocal, setUseOutproxyPlugin, setUserAgents, setUseSSL, storeMethod, useSoraFontpublic boolean canChangeEncType(int tunnel)
tunnel - the tunnelpublic boolean canChangePort(int tunnel)
tunnel - the tunnelpublic boolean canChangeSigType(int tunnel)
tunnel - the tunnelpublic String getAccessList(int tunnel)
public String getAccessMode(int tunnel)
public boolean getAllowAccept(int tunnel)
tunnel - the tunnelpublic boolean getAllowInternalSSL(int tunnel)
tunnel - the tunnelpublic boolean getAllowReferer(int tunnel)
tunnel - the tunnelpublic boolean getAllowUserAgent(int tunnel)
tunnel - the tunnelpublic String getAltPrivateKeyFile(int tunnel)
public String getBlindedPassword(int tunnel)
tunnel - the tunnelpublic int getCert(int tunnel)
public List<String> getClientAuths(int tunnel, boolean isDH)
isDH - true for DH, false for PSKpublic boolean getClose(int tunnel)
public int getCloseTime(int tunnel)
public String getCustomOptions(int tunnel)
public boolean getDCC(int tunnel)
public boolean getDelayOpen(int tunnel)
public int getEffort(int tunnel)
public boolean getEncrypt(int tunnel)
public String getEncryptKey(int tunnel)
public String getEncryptMode(int tunnel)
tunnel - the tunnelpublic String getFilterDefinition(int tunnel)
tunnel - the tunnelpublic String getI2CPHost(int tunnel)
public String getI2CPPort(int tunnel)
public String getJumpList(int tunnel)
public String getKey1(int tunnel)
tunnel - the tunnelpublic String getKey2(int tunnel)
public String getKey3(int tunnel)
public String getKey4(int tunnel)
public int getLimitDay(int tunnel)
public int getLimitHour(int tunnel)
public int getLimitMinute(int tunnel)
public int getMaxStreams(int tunnel)
public boolean getMultihome(int tunnel)
public boolean getNewDest(int tunnel)
public boolean getOutproxyAuth(int tunnel)
public String getOutproxyPassword(int tunnel)
public String getOutproxyType(int tunnel)
public String getOutproxyUsername(int tunnel)
public boolean getPersistentClientKey(int tunnel)
public int getPostBanTime(int tunnel)
public int getPostCheckTime(int tunnel)
public int getPostMax(int tunnel)
public int getPostTotalBanTime(int tunnel)
public int getPostTotalMax(int tunnel)
public String getPrivateKeyFile(int tunnel)
public boolean getProxyAuth(int tunnel)
public String getQuantityOptions(int tunnel, int mode)
mode - 0=both, 1=in, 2=outpublic boolean getReduce(int tunnel)
public int getReduceCount(int tunnel)
public int getReduceTime(int tunnel)
public int getShutdownDelayMax(int tunnel)
tunnel - the tunnelpublic int getShutdownDelayMin(int tunnel)
tunnel - the tunnelpublic String getSigner(int tunnel)
public SigningPrivateKey getSigningPrivateKey(int tunnel)
public int getSigType(int tunnel,
String newTunnelType)tunnel - the tunnelnewTunnelType - used if tunnel < 0public String getSslProxies(int tunnel)
public int getStartupDelayMax(int tunnel)
tunnel - the tunnelpublic int getStartupDelayMin(int tunnel)
tunnel - the tunnelpublic String getTargetHost(int tunnel)
public String getTargetPort(int tunnel)
public int getTotalDay(int tunnel)
public int getTotalHour(int tunnel)
public int getTotalMinute(int tunnel)
public int getTunnelBackupQuantity(int tunnel,
int defaultBackupQuantity)tunnel - the tunneldefaultBackupQuantity - the default backup quantity if not configuredpublic int getTunnelBackupQuantityOut(int tunnel,
int defaultBackupQuantity)tunnel - the tunneldefaultBackupQuantity - the default backup quantity if not configuredpublic int getTunnelDepth(int tunnel,
int defaultLength)tunnel - the tunneldefaultLength - the default depth if not configuredpublic int getTunnelDepthOut(int tunnel,
int defaultLength)tunnel - the tunneldefaultLength - the default depth if not configuredpublic int getTunnelQuantity(int tunnel,
int defaultQuantity)tunnel - the tunneldefaultQuantity - the default quantity if not configuredpublic int getTunnelQuantityOut(int tunnel,
int defaultQuantity)tunnel - the tunneldefaultQuantity - the default quantity if not configuredpublic int getTunnelVariance(int tunnel,
int defaultVariance)tunnel - the tunneldefaultVariance - the default variance if not configuredpublic int getTunnelVarianceOut(int tunnel,
int defaultVariance)tunnel - the tunneldefaultVariance - the default variance if not configuredpublic boolean getUniqueLocal(int tunnel)
public boolean getUseOutproxyPlugin(int tunnel)
public String getUserAgents(int tunnel)
public boolean hasEncType(int tunnel,
int encType)tunnel - the tunnelencType - the encryption type codepublic Set<String> interfaceSet()
public boolean isAdvanced()
public boolean isInteractive(int tunnel)
tunnel - the tunnelpublic boolean isRouterContext()
public boolean isSigTypeAvailable(int code)
code - the signature type codepublic boolean shouldDelay(int tunnel)
tunnel - the tunnelpublic boolean startAutomatically(int tunnel)
tunnel - the tunnelpublic static boolean staticIsClient(int tunnel)
tunnel - the tunnel