Class OutboundCreationResult
- All Implemented Interfaces:
AutoCloseable
This is returned by Ecies.establishOutboundChannel(String, byte[])
and contains both the established channel and the initial message to send
to the recipient.
- 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
-
initialMessage
Returns the initial message to send to the recipient.The message contains the initiator's ephemeral Curve25519 public key and the ciphertext of the initial plaintext, encoded as a string. The recipient uses this message to establish their side of the channel via
Ecies.establishInboundChannel(String).The initiator's key embedded in this message is unauthenticated, so authentication must happen out-of-band using the
CheckCodeto protect against active man-in-the-middle (MITM) attacks.- Returns:
- the initial message string
-
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
-