Package org.drasyl.node.handler.crypto
Class Session
java.lang.Object
org.drasyl.node.handler.crypto.Session
This class holds the current (long time/session | active/inactive/stale)
Agreements
between two nodes.-
Constructor Summary
ConstructorDescriptionSession
(Agreement longTimeAgreement, ConcurrentReference<PendingAgreement> currentInactiveAgreement, int maxAgreements, Duration sessionExpireTime) -
Method Summary
Modifier and TypeMethodDescriptionlong
long
void
setLastKeyExchangeAt
(long lastKeyExchangeAt) void
setLastRenewAttemptAt
(long lastRenewAttemptAt)
-
Constructor Details
-
Session
public Session(Agreement longTimeAgreement, ConcurrentReference<PendingAgreement> currentInactiveAgreement, int maxAgreements, Duration sessionExpireTime) -
Session
-
-
Method Details
-
getInitializedAgreements
-
getCurrentActiveAgreement
-
getCurrentInactiveAgreement
-
getLastKeyExchangeAt
public long getLastKeyExchangeAt() -
setLastKeyExchangeAt
public void setLastKeyExchangeAt(long lastKeyExchangeAt) -
getLastRenewAttemptAt
public long getLastRenewAttemptAt() -
setLastRenewAttemptAt
public void setLastRenewAttemptAt(long lastRenewAttemptAt) -
getLongTimeAgreement
-