Package org.drasyl.node.handler.crypto
Class AgreementId
java.lang.Object
org.drasyl.node.handler.crypto.AgreementId
This class represents an identifier for an
Agreement
between to nodes.-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getId()
int
hashCode()
static AgreementId
of
(byte[] id) static AgreementId
of
(KeyAgreementPublicKey pk1, KeyAgreementPublicKey pk2) static AgreementId
of
(ImmutableByteArray id) byte[]
toBytes()
toString()
-
Field Details
-
ID_LENGTH
public static final short ID_LENGTH- See Also:
-
-
Method Details
-
of
- Throws:
NullPointerException
- ifid
isnull
IllegalArgumentException
- ifid
is not a valid MurMur3x32 hash
-
of
-
of
- Throws:
NullPointerException
- ifid
isnull
IllegalArgumentException
- ifid
is not a valid MurMur3x32 hash
-
getId
-
toBytes
public byte[] toBytes() -
equals
-
hashCode
public int hashCode() -
toString
-