Package org.drasyl.node.handler.crypto
Class Agreement
java.lang.Object
org.drasyl.node.handler.crypto.Agreement
This object represents a session key agreement between two nodes.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract AgreementId
abstract SessionPair
abstract long
boolean
boolean
isStale()
static Agreement
of
(AgreementId id, SessionPair sessionPair, long staleAt)
-
Field Details
-
RENEW_DIVISOR
public static final long RENEW_DIVISOR- See Also:
-
-
Constructor Details
-
Agreement
public Agreement()
-
-
Method Details
-
getAgreementId
-
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
-