Class IdentityKeys

java.lang.Object
io.github.fherbreteau.vodozemac.account.IdentityKeys

public final class IdentityKeys extends Object
Holds the two public identity keys of an Account.

An Olm account has two identity keys:

  • An Ed25519 key, used for signing (fingerprint key)
  • A Curve25519 key, used to establish shared secrets (identity key)
Both keys are represented as base64-encoded strings.
Author:
François HERBRETEAU
  • Method Details

    • fingerprintKey

      public Ed25519PublicKey fingerprintKey()
      Returns the Ed25519 fingerprint key, used for signing.
      Returns:
      the base64-encoded Ed25519 public key
    • identityKey

      public Curve25519PublicKey identityKey()
      Returns the Curve25519 identity key, used to establish shared secrets.
      Returns:
      the base64-encoded Curve25519 public key
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object