Class OneTimeKeyGenerationResult

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

public final class OneTimeKeyGenerationResult extends Object
Result of generating one-time keys on an Account.

The one-time key store inside an Account has a limited number of places for one-time keys. If new keys are generated while the store is completely populated, the oldest one-time keys are discarded to make room for new ones.

This result contains both the newly created keys and the keys that were discarded to make room.

Author:
François HERBRETEAU
See Also:
  • Method Details

    • created

      public List<Curve25519PublicKey> created()
      Returns the public parts of the one-time keys that were created.

      Each key is a base64-encoded Curve25519 public key.

      Returns:
      a list of newly created one-time key strings
    • removed

      public List<Curve25519PublicKey> removed()
      Returns the public parts of the one-time keys that were discarded to make room for the newly created ones.

      Each key is a base64-encoded Curve25519 public key.

      Returns:
      a list of discarded one-time key strings
    • 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