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.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description EditBean()
-
Method Summary
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
-
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
-
getTargetPort
-
getPrivateKeyFile
-
getAltPrivateKeyFile
- Returns:
- path or ""
- Since:
- 0.9.30
-
getSigningPrivateKey
- 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
-
getEncrypt
public boolean getEncrypt(int tunnel) -
getEncryptMode
- Since:
- 0.9.40
-
getBlindedPassword
- Since:
- 0.9.40
-
getClientAuths
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
- 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
Random keys, hidden in forms- Since:
- 0.9.18
-
getKey2
-
getKey3
-
getKey4
-
getDCC
public boolean getDCC(int tunnel)- Since:
- 0.8.9
-
getEncryptKey
-
getAccessMode
-
getAccessList
-
getFilterDefinition
- Since:
- 0.9.40
-
getJumpList
-
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
- Since:
- 0.9.25
-
getProxyAuth
public boolean getProxyAuth(int tunnel)all proxy auth @since 0.8.2 -
getOutproxyAuth
public boolean getOutproxyAuth(int tunnel) -
getOutproxyUsername
-
getOutproxyPassword
-
getSslProxies
- 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
-
interfaceSet
- Since:
- 0.8.3
-
isAdvanced
public boolean isAdvanced()- Since:
- 0.9.12
-
getI2CPHost
-
getI2CPPort
-
getCustomOptions
-
getQuantityOptions
- Parameters:
mode
- 0=both, 1=in, 2=out- Since:
- 0.9.7
-
unlessAdvanced
- Returns:
- translated s or ""
- Since:
- 0.9.47
-