Class InboundCreationResult
java.lang.Object
io.github.fherbreteau.vodozemac.olm.InboundCreationResult
- All Implemented Interfaces:
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 Summary
Modifier and TypeMethodDescriptionvoidclose()booleaninthashCode()byte[]Returns the plaintext of the pre-key message that was decrypted as part of the session creation.session()Returns theOlmSessionthat was created from the pre-key message.toString()
-
Method Details
-
session
Returns theOlmSessionthat 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:
closein interfaceAutoCloseable
-
equals
-
hashCode
-
toString
-