public class AbstractParty
An class AbstractParty
contains the common elements of class Party
and class AnonymousParty
, specifically the owning key of
the party. In most cases class Party
or class AnonymousParty
should be used, depending on use-case.
Constructor and Description |
---|
AbstractParty(CompositeKey owningKey)
An
class AbstractParty contains the common elements of class Party and class AnonymousParty , specifically the owning key of
the party. In most cases class Party or class AnonymousParty should be used, depending on use-case. |
AbstractParty(java.security.PublicKey owningKey)
A helper constructor that converts the given PublicKey in to a
class CompositeKey with a single node |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other)
Anonymised parties do not include any detail apart from owning key, so equality is dependent solely on the key
|
CompositeKey |
getOwningKey() |
int |
hashCode() |
java.lang.String |
nameOrNull() |
PartyAndReference |
ref(OpaqueBytes bytes) |
PartyAndReference |
ref(byte bytes) |
AnonymousParty |
toAnonymous() |
public AbstractParty(CompositeKey owningKey)
An class AbstractParty
contains the common elements of class Party
and class AnonymousParty
, specifically the owning key of
the party. In most cases class Party
or class AnonymousParty
should be used, depending on use-case.
public AbstractParty(java.security.PublicKey owningKey)
A helper constructor that converts the given PublicKey in to a class CompositeKey
with a single node
class CompositeKey
public boolean equals(java.lang.Object other)
Anonymised parties do not include any detail apart from owning key, so equality is dependent solely on the key
public int hashCode()
public AnonymousParty toAnonymous()
public java.lang.String nameOrNull()
public PartyAndReference ref(OpaqueBytes bytes)
public PartyAndReference ref(byte bytes)
public CompositeKey getOwningKey()