Class Session

java.lang.Object
org.drasyl.node.handler.crypto.Session

public class Session extends Object
This class holds the current (long time/session | active/inactive/stale) Agreements between two nodes.
  • Constructor Details

  • Method Details

    • getInitializedAgreements

      public Map<AgreementId,Agreement> getInitializedAgreements()
    • getCurrentActiveAgreement

      public ConcurrentReference<Agreement> getCurrentActiveAgreement()
    • getCurrentInactiveAgreement

      public ConcurrentReference<PendingAgreement> getCurrentInactiveAgreement()
    • getLastKeyExchangeAt

      public long getLastKeyExchangeAt()
    • setLastKeyExchangeAt

      public void setLastKeyExchangeAt(long lastKeyExchangeAt)
    • getLastRenewAttemptAt

      public long getLastRenewAttemptAt()
    • setLastRenewAttemptAt

      public void setLastRenewAttemptAt(long lastRenewAttemptAt)
    • getLongTimeAgreement

      public Agreement getLongTimeAgreement()