Class InboundCreationResult

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

public final class InboundCreationResult extends Object implements AutoCloseable
The result of an inbound ECIES channel establishment.

This is returned by Ecies.establishInboundChannel(String) and contains both the established channel and the decrypted plaintext of the initial message sent by the initiator.

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

    • establishedEcies

      public EstablishedEcies establishedEcies()
      Returns the established ECIES channel.

      The returned EstablishedEcies can be used to encrypt and decrypt further messages after the channel has been established.

      Returns:
      the established ECIES channel
    • plaintext

      public byte[] plaintext()
      Returns the decrypted plaintext of the initial message.

      This is the plaintext that was encrypted by the initiator and sent as part of the initial message.

      Returns:
      the decrypted plaintext bytes
    • close

      public void close()
      Closes this resource by releasing its associated native resources.

      This method is idempotent: calling it more than once has no effect.

      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