corda / net.corda.core.node.services / IdentityService

# IdentityService

`interface IdentityService`

An identity service maintains an bidirectional map of Partys 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.

### Functions

getAllIdentities | `abstract fun getAllIdentities(): Iterable<Party>` Get all identities known to the service. This is expensive, and partyFromKey or partyFromName should be used in preference where possible.
partyFromAnonymous | `abstract fun partyFromAnonymous(party: AnonymousParty): Party?` `open fun partyFromAnonymous(partyRef: PartyAndReference): Party?`
partyFromKey | `abstract fun partyFromKey(key: CompositeKey): Party?`
partyFromName | `abstract fun partyFromName(name: String): Party?`
registerIdentity | `abstract fun registerIdentity(party: Party): Unit`

### Inheritors

InMemoryIdentityService | `class InMemoryIdentityService : SingletonSerializeAsToken, IdentityService` Simple identity service which caches parties and provides functionality for efficient lookup.