public static class TwoPartyDealFlow.Handshake<T>
This object is serialised to the network and is the first flow message the seller sends to the buyer.
public Handshake(T payload, @NotNull AnonymousParty primaryIdentity, @NotNull AnonymousParty secondaryIdentity)
This object is serialised to the network and is the first flow message the seller sends to the buyer.
primaryIdentity
- the (anonymised) identity of the participant that initiates communication/handshake.secondaryIdentity
- the (anonymised) identity of the participant that is recipient of initial communication.public T getPayload()
@NotNull public AnonymousParty getPrimaryIdentity()
the
(anonymised) identity of the participant that initiates communication/handshake.
@NotNull public AnonymousParty getSecondaryIdentity()
the
(anonymised) identity of the participant that is recipient of initial communication.
public T component1()
@NotNull public AnonymousParty component2()
the
(anonymised) identity of the participant that initiates communication/handshake.
@NotNull public AnonymousParty component3()
the
(anonymised) identity of the participant that is recipient of initial communication.
@NotNull public net.corda.finance.flows.TwoPartyDealFlow.Handshake<T> copy(T payload, @NotNull AnonymousParty primaryIdentity, @NotNull AnonymousParty secondaryIdentity)
This object is serialised to the network and is the first flow message the seller sends to the buyer.
primaryIdentity
- the (anonymised) identity of the participant that initiates communication/handshake.secondaryIdentity
- the (anonymised) identity of the participant that is recipient of initial communication.@NotNull public java.lang.String toString()
This object is serialised to the network and is the first flow message the seller sends to the buyer.
public int hashCode()
This object is serialised to the network and is the first flow message the seller sends to the buyer.
public boolean equals(@Nullable java.lang.Object p)
This object is serialised to the network and is the first flow message the seller sends to the buyer.