Class InboundCreationResult

java.lang.Object
io.github.fherbreteau.vodozemac.olm.InboundCreationResult
All Implemented Interfaces:
AutoCloseable

public final class InboundCreationResult extends Object implements AutoCloseable
Return type for the creation of an inbound OlmSession.

When an inbound session is created from a pre-key message, the first message (the pre-key message itself) is decrypted as part of the session creation process. This result contains both the newly created session and the decrypted plaintext of that first message.

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

    • session

      public OlmSession session()
      Returns the OlmSession that was created from the pre-key message.
      Returns:
      the newly created session
    • plaintext

      public byte[] plaintext()
      Returns the plaintext of the pre-key message that was decrypted as part of the session creation.
      Returns:
      the decrypted plaintext bytes
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
    • 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