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 @since 0.8.3 |
| 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) |
String | getAccessMode(int 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) |
String | getBlindedPassword(int tunnel)Returns the blinded password for the tunnel. |
int | getCert(int tunnel) |
List<String> | getClientAuths(int tunnel,
boolean isDH)List of b64 name : b64key
Pubkeys for DH, privkeys for PSK |
boolean | getClose(int tunnel) |
int | getCloseTime(int tunnel) |
String | getCustomOptions(int tunnel) |
boolean | getDCC(int tunnel) |
boolean | getDelayOpen(int tunnel) |
int | getEffort(int tunnel) |
boolean | getEncrypt(int tunnel) |
String | getEncryptKey(int 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) |
String | getI2CPPort(int tunnel) |
String | getJumpList(int tunnel) |
String | getKey1(int tunnel)Returns the encrypted inbound random key, hidden in forms. |
String | getKey2(int tunnel) |
String | getKey3(int tunnel) |
String | getKey4(int tunnel) |
int | getLimitDay(int tunnel) |
int | getLimitHour(int tunnel) |
int | getLimitMinute(int tunnel) |
int | getMaxStreams(int tunnel) |
boolean | getMultihome(int tunnel) |
boolean | getNewDest(int tunnel) |
boolean | getOutproxyAuth(int tunnel) |
String | getOutproxyPassword(int tunnel) |
String | getOutproxyType(int tunnel) |
String | getOutproxyUsername(int tunnel) |
boolean | getPersistentClientKey(int tunnel) |
int | getPostBanTime(int tunnel) |
int | getPostCheckTime(int tunnel) |
int | getPostMax(int tunnel)POST limits |
int | getPostTotalBanTime(int tunnel) |
int | getPostTotalMax(int tunnel) |
String | getPrivateKeyFile(int tunnel) |
boolean | getProxyAuth(int tunnel) |
String | getQuantityOptions(int tunnel,
int mode) |
boolean | getReduce(int tunnel) |
int | getReduceCount(int tunnel) |
int | getReduceTime(int tunnel) |
int | getShutdownDelayMax(int tunnel) |
int | getShutdownDelayMin(int tunnel) |
String | getSigner(int tunnel) |
SigningPrivateKey | getSigningPrivateKey(int tunnel) |
int | getSigType(int tunnel,
String newTunnelType)Returns the signature type for the tunnel. |
String | getSslProxies(int tunnel) |
int | getStartupDelayMax(int tunnel) |
int | getStartupDelayMin(int tunnel) |
String | getTargetHost(int tunnel) |
String | getTargetPort(int tunnel) |
int | getTotalDay(int tunnel) |
int | getTotalHour(int tunnel) |
int | getTotalMinute(int 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) |
boolean | getUseOutproxyPlugin(int tunnel) |
String | getUserAgents(int tunnel) |
boolean | hasEncType(int tunnel,
int encType)Returns whether the tunnel supports the specified encryption type. |
Set<String> | interfaceSet() |
boolean | isAdvanced() |
boolean | isInteractive(int tunnel) |
boolean | isRouterContext() |
boolean | isSigTypeAvailable(int code)Returns whether the given signature type is available. |
boolean | shouldDelay(int tunnel) |
boolean | startAutomatically(int tunnel) |
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) |
_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 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