public IdentityService
An identity service maintains an bidirectional map of class Party
s to their associated public keys and thus supports
lookup of a party given its key. This is obviously very incomplete and does not reflect everything a real identity
service would provide.
class Party
Modifier and Type | Method and Description |
---|---|
java.lang.Iterable<net.corda.core.crypto.Party> |
getAllIdentities()
Get all identities known to the service. This is expensive, and
IdentityService.partyFromKey or partyFromName should be
used in preference where possible. |
Party |
partyFromKey(CompositeKey key) |
Party |
partyFromName(java.lang.String name) |
void |
registerIdentity(Party party) |
void registerIdentity(Party party)
java.lang.Iterable<net.corda.core.crypto.Party> getAllIdentities()
Get all identities known to the service. This is expensive, and IdentityService.partyFromKey
or partyFromName should be
used in preference where possible.
IdentityService.partyFromKey
Party partyFromKey(CompositeKey key)
Party partyFromName(java.lang.String name)