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

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

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

origin: i2p/i2p.i2p

  @Override
  public String toString() {
    StringBuilder buf = new StringBuilder("[SessionConfig: ");
    buf.append("\n\tDestination: ").append(getDestination());
    buf.append("\n\tSignature: ").append(getSignature());
    buf.append("\n\tCreation Date: ").append(getCreationDate());
    buf.append("\n\tOptions: #: ").append(_options.size());
    Properties sorted = new OrderedProperties();
    sorted.putAll(_options);
    for (Map.Entry<Object, Object> e : sorted.entrySet()) {
      String key = (String) e.getKey();
      String val = (String) e.getValue();
      buf.append("\n\t\t[").append(key).append("] = [").append(val).append("]");
    }
    buf.append("]");
    return buf.toString();
  }
}
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

if (getCreationDate() == null) {
origin: i2p/i2p.i2p

  _runner.disconnectClient("Unsupported signature type " + itype);
} else if (in.tooOld()) {
  long skew = _context.clock().now() - in.getCreationDate().getTime();
  String msg = "Create session message client clock skew? ";
  if (skew >= 0)
net.i2p.data.i2cpSessionConfiggetCreationDate

Javadoc

Determine when this session was authorized by the destination (so we can prevent replay attacks)

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
  • getOptions
    Retrieve any configuration options for the session
  • 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

  • Reading from database using SQL prepared statement
  • getSupportFragmentManager (FragmentActivity)
  • requestLocationUpdates (LocationManager)
  • scheduleAtFixedRate (Timer)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • Path (java.nio.file)
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Top 15 Vim Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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