Class InboundCreationResult
java.lang.Object
io.github.fherbreteau.vodozemac.ecies.InboundCreationResult
- All Implemented Interfaces:
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
Returns the established ECIES channel.The returned
EstablishedEciescan 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:
closein interfaceAutoCloseable
-
equals
-
hashCode
-
toString
-