Tabnine Logo
SessionConfig.getOptions
Code IndexAdd Tabnine to your IDE (free)

How to use
getOptions
method
in
net.i2p.data.i2cp.SessionConfig

Best Java code snippets using net.i2p.data.i2cp.SessionConfig.getOptions (Showing top 8 results out of 315)

origin: i2p/i2p.i2p

/**
 *  @return true if we don't know about this destination at all
 */
public boolean shouldPublishLeaseSet(Hash destHash) { 
  if (destHash == null) return true;
  ClientConnectionRunner runner = getRunner(destHash);
  if (runner == null) return true;
  SessionConfig config = runner.getConfig(destHash);
  if (config == null) return true;
  return !Boolean.parseBoolean(config.getOptions().getProperty(ClientManagerFacade.PROP_CLIENT_ONLY));
}
origin: i2p/i2p.i2p

Properties opts = config.getOptions();
if (isPrimary && opts != null) {
  _dontSendMSM = "none".equals(opts.getProperty(I2PClient.PROP_RELIABILITY, "").toLowerCase(Locale.US));
origin: i2p/i2p.i2p

@Override
public boolean equals(Object object) {
  if ((object != null) && (object instanceof SessionConfig)) {
    SessionConfig cfg = (SessionConfig) object;
    return DataHelper.eq(getSignature(), cfg.getSignature())
        && DataHelper.eq(getDestination(), cfg.getDestination())
        && DataHelper.eq(getCreationDate(), cfg.getCreationDate())
        && DataHelper.eq(getOptions(), cfg.getOptions());
  }
     return false;
}
origin: i2p/i2p.i2p

  public void runJob() {
    Hash dest = _config.getDestination().calculateHash();
    if (_log.shouldLog(Log.INFO))
      _log.info("Requesting lease set for destination " + dest);
    ClientTunnelSettings settings = new ClientTunnelSettings(dest);
    Properties props = new Properties();
    
    // We're NOT going to force all clients to use the router's defaults, since that may be
    // excessive.  This means that unless the user says otherwise, we'll be satisfied with whatever
    // is available.  Otherwise, when the router starts up, if there aren't sufficient tunnels with the
    // adequate number of hops, the user will have to wait.  Once peer profiles are persistent, we can
    // reenable this, since on startup we'll have a sufficient number of high enough ranked peers to
    // tunnel through.  (perhaps).
    
    // XXX take the router's defaults
    // XXX props.putAll(Router.getInstance().getConfigMap());
    
    // override them by the client's settings
    props.putAll(_config.getOptions());
    
    // and load 'em up (using anything not yet set as the software defaults)
    settings.readFromProperties(props);
    getContext().tunnelManager().buildTunnels(_config.getDestination(), settings);
  }
}
origin: i2p/i2p.i2p

cfg.getOptions().putAll(message.getSessionConfig().getOptions());
ClientTunnelSettings settings = new ClientTunnelSettings(dest);
Properties props = new Properties();
props.putAll(cfg.getOptions());
settings.readFromProperties(props);
_context.tunnelManager().setInboundSettings(dest,
origin: i2p/i2p.i2p

String param = msg.getSenderConfig().getOptions().getProperty(OVERALL_TIMEOUT_MS_PARAM);
if (param == null)
  param = ctx.router().getConfigSetting(OVERALL_TIMEOUT_MS_PARAM);
origin: i2p/i2p.i2p

Properties inProps = in.getOptions();
if (!checkAuth(inProps))
  return;
    props.putAll(pcfg.getOptions());
  } else {
    _log.error("no primary config?");
origin: i2p/i2p.i2p

String allow = _clientMessage.getSenderConfig().getOptions().getProperty(BUNDLE_REPLY_LEASESET);
boolean allowLeaseBundle = SendMessageOptions.getSendLeaseSet(sendFlags) &&
              (allow == null || Boolean.parseBoolean(allow));
net.i2p.data.i2cpSessionConfiggetOptions

Javadoc

Retrieve any configuration options for the session

Popular methods of SessionConfig

  • <init>
  • getDestination
    Retrieve the destination for which this session is supposed to connect
  • setOptions
    Configure the session with the given options; keys and values 255 bytes (not chars) max each Default
  • getCreationDate
    Determine when this session was authorized by the destination (so we can prevent replay attacks)
  • getSignature
  • setSignature
  • signSessionConfig
    Sign the structure using the supplied private key
  • tooOld
    Misnamed, could be too old or too far in the future.
  • getBytes
  • getOfflineExpiration
    Get the offline expiration
  • getOfflineSignature
  • getTransientSigningPublicKey
  • getOfflineSignature,
  • getTransientSigningPublicKey,
  • readBytes,
  • setOfflineSignature,
  • verifySignature,
  • writeBytes

Popular in Java

  • Finding current android device location
  • getApplicationContext (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • onCreateOptionsMenu (Activity)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • JList (javax.swing)
  • BasicDataSource (org.apache.commons.dbcp)
    Basic implementation of javax.sql.DataSource that is configured via JavaBeans properties. This is no
  • Top plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now