public class AnonymousParty extends AbstractParty implements Destination
The class AnonymousParty
class contains enough information to uniquely identify a class Party
while excluding private
information such as name. It is intended to represent a party on the distributed ledger.
Anonymous parties can be used to communicate using the FlowLogic.initiateFlow
method. Message routing is simply routing to the well-known
class Party
the anonymous party belongs to. This mechanism assumes the party initiating the communication knows who the anonymous party is.
class AnonymousParty
,
class Party
,
FlowLogic.initiateFlow
,
class Party
Constructor and Description |
---|
AnonymousParty(java.security.PublicKey owningKey)
The
class AnonymousParty class contains enough information to uniquely identify a class Party while excluding private
information such as name. It is intended to represent a party on the distributed ledger. |
Modifier and Type | Method and Description |
---|---|
CordaX500Name |
nameOrNull() |
PartyAndReference |
ref(OpaqueBytes bytes)
Build a reference to something being stored or issued by a party e.g. in a vault or (more likely) on their normal
ledger.
|
java.lang.String |
toString() |
equals, getOwningKey, hashCode, nameOrNull, ref, ref
public AnonymousParty(java.security.PublicKey owningKey)
The class AnonymousParty
class contains enough information to uniquely identify a class Party
while excluding private
information such as name. It is intended to represent a party on the distributed ledger.
Anonymous parties can be used to communicate using the FlowLogic.initiateFlow
method. Message routing is simply routing to the well-known
class Party
the anonymous party belongs to. This mechanism assumes the party initiating the communication knows who the anonymous party is.
class AnonymousParty
,
class Party
,
FlowLogic.initiateFlow
,
class Party
public CordaX500Name nameOrNull()
public PartyAndReference ref(OpaqueBytes bytes)
Build a reference to something being stored or issued by a party e.g. in a vault or (more likely) on their normal ledger.
public java.lang.String toString()