Class Agreement

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

public abstract class Agreement extends Object
This object represents a session key agreement between two nodes.
  • Field Details

  • Constructor Details

    • Agreement

      public Agreement()
  • Method Details

    • getAgreementId

      public abstract AgreementId getAgreementId()
    • getSessionPair

      public abstract SessionPair getSessionPair()
    • getStaleAt

      public abstract long getStaleAt()
      Returns:
      negative value means no stale (only for long time agreement)
    • isStale

      public boolean isStale()
    • isRenewable

      public boolean isRenewable()
    • of

      public static Agreement of(AgreementId id, SessionPair sessionPair, long staleAt)