Package net.i2p.i2ptunnel.web
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 Summary
Constructors Constructor Description EditBean()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canChangeEncType(int tunnel)
boolean
canChangePort(int tunnel)
boolean
canChangeSigType(int tunnel)
String
getAccessList(int tunnel)
String
getAccessMode(int tunnel)
boolean
getAllowAccept(int tunnel)
boolean
getAllowInternalSSL(int tunnel)
boolean
getAllowReferer(int tunnel)
boolean
getAllowUserAgent(int tunnel)
String
getAltPrivateKeyFile(int tunnel)
String
getBlindedPassword(int tunnel)
int
getCert(int tunnel)
List<String>
getClientAuths(int tunnel, boolean isDH)
List of b64 name : b64key Pubkeys for DH, privkeys for PSKboolean
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)
String
getFilterDefinition(int tunnel)
String
getI2CPHost(int tunnel)
String
getI2CPPort(int tunnel)
String
getJumpList(int tunnel)
String
getKey1(int tunnel)
Random keys, hidden in formsString
getKey2(int tunnel)
String
getKey3(int tunnel)
String
getKey4(int tunnel)
int
getLimitDay(int tunnel)
int
getLimitHour(int tunnel)
int
getLimitMinute(int tunnel)
all of these are @since 0.8.3int
getMaxStreams(int tunnel)
boolean
getMultihome(int tunnel)
boolean
getNewDest(int tunnel)
boolean
getOutproxyAuth(int tunnel)
String
getOutproxyPassword(int tunnel)
String
getOutproxyUsername(int tunnel)
boolean
getPersistentClientKey(int tunnel)
int
getPostBanTime(int tunnel)
int
getPostCheckTime(int tunnel)
int
getPostMax(int tunnel)
POST limitsint
getPostTotalBanTime(int tunnel)
int
getPostTotalMax(int tunnel)
String
getPrivateKeyFile(int tunnel)
boolean
getProxyAuth(int tunnel)
all proxy auth @since 0.8.2String
getQuantityOptions(int tunnel, int mode)
boolean
getReduce(int tunnel)
int
getReduceCount(int tunnel)
int
getReduceTime(int tunnel)
String
getSigner(int tunnel)
SigningPrivateKey
getSigningPrivateKey(int tunnel)
int
getSigType(int tunnel, String newTunnelType)
String
getSslProxies(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)
in or both in/outint
getTunnelBackupQuantityOut(int tunnel, int defaultBackupQuantity)
int
getTunnelDepth(int tunnel, int defaultLength)
in or both in/outint
getTunnelDepthOut(int tunnel, int defaultLength)
int
getTunnelQuantity(int tunnel, int defaultQuantity)
in or both in/outint
getTunnelQuantityOut(int tunnel, int defaultQuantity)
int
getTunnelVariance(int tunnel, int defaultVariance)
in or both in/outint
getTunnelVarianceOut(int tunnel, int defaultVariance)
boolean
getUniqueLocal(int tunnel)
boolean
getUseOutproxyPlugin(int tunnel)
Default trueString
getUserAgents(int tunnel)
boolean
hasEncType(int tunnel, int encType)
Set<String>
interfaceSet()
boolean
isAdvanced()
boolean
isInteractive(int tunnel)
boolean
isRouterContext()
boolean
isSigTypeAvailable(int code)
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)
-
Methods inherited from class net.i2p.i2ptunnel.web.IndexBean
_t, encrypt, getAltDestHashBase32, getAltDestination, getAltDestinationBase64, getClientDestination, getClientInterface, getClientPort, getClientPort2, getController, getDestHashBase32, getDestination, getDestinationBase64, getEncryptedBase32, getInternalType, getIsOfflineKeys, getIsUsingOutproxyPlugin, getLastMessageID, getMessages, getNextNonce, getServerTarget, getSharedClient, getSpoofedHost, getTheme, getTunnelCount, getTunnelDescription, getTunnelName, getTunnelStatus, getTunnelType, getType, getTypeName, haveNonce, isClient, isClient, isInitialized, isRejectInproxy, isRejectReferer, isRejectUserAgents, isServerTargetLinkValid, isSharedClient, isSSLEnabled, ngettext, setAccessList, setAccessMode, setAction, setAddClient, setAllowAccept, setAllowInternalSSL, setAllowReferer, setAllowUserAgent, setAltPrivKeyFile, setCert, setClientHost, setclientKey, setClientport, setClose, setCloseTime, setConnectDelay, setDCC, setDelayOpen, setEffort, setEncrypt, setEncryptKey, setEncryptMode, setEncType, setFilterDefinition, setJumpList, setKey1, setKey2, setKey3, setKey4, setLimitDay, setLimitHour, setLimitMinute, setMaxStreams, setMsgid, setMultihome, setName, setNewClientKey, setNewDest, setNofilter_blindedPassword, setNofilter_clientName, setNofilter_customOptions, setNofilter_description, setNofilter_newClientName, setNofilter_outproxyPassword, setNofilter_proxyPassword, setNonce, setOutproxyAuth, setOutproxyUsername, setPort, setPostBanTime, setPostCheckTime, setPostMax, setPostTotalBanTime, setPostTotalMax, setPrivKeyFile, setProfile, setProxyAuth, setProxyList, setProxyUsername, setReachableBy, setReduce, setReduceCount, setReduceTime, setRejectInproxy, setRejectReferer, setRejectUserAgents, setRemoveConfirm, setRevokeClient, setShared, setShared, setSigner, setSigType, setSpoofedHost, setSslProxies, setStartOnLoad, setTargetDestination, setTargetHost, setTargetPort, setTotalDay, setTotalHour, setTotalMinute, setTunnel, setTunnelBackupQuantity, setTunnelBackupQuantityOut, setTunnelDepth, setTunnelDepthOut, setTunnelQuantity, setTunnelQuantityOut, setTunnelVariance, setTunnelVarianceOut, setType, setUniqueLocal, setUseOutproxyPlugin, setUserAgents, setUseSSL
-
-
-
-
Method Detail
-
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
-
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
-
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
-
-