public class InMemoryIdentityService extends SingletonSerializeAsToken implements IdentityService
Simple identity service which caches parties and provides functionality for efficient lookup.
IdentityService.DefaultImpls
Constructor and Description |
---|
InMemoryIdentityService()
Simple identity service which caches parties and provides functionality for efficient lookup.
|
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
InMemoryIdentityService.partyFromKey or partyFromName should be
used in preference where possible. |
Party |
partyFromAnonymous(AnonymousParty party) |
Party |
partyFromAnonymous(PartyAndReference partyRef) |
Party |
partyFromKey(CompositeKey key) |
Party |
partyFromName(java.lang.String name) |
void |
registerIdentity(Party party) |
toToken
getAllIdentities, partyFromAnonymous, partyFromAnonymous, partyFromKey, partyFromName, registerIdentity
toToken
public InMemoryIdentityService()
Simple identity service which caches parties and provides functionality for efficient lookup.
public void registerIdentity(Party party)
public java.lang.Iterable<net.corda.core.crypto.Party> getAllIdentities()
Get all identities known to the service. This is expensive, and InMemoryIdentityService.partyFromKey
or partyFromName should be
used in preference where possible.
InMemoryIdentityService.partyFromKey
public Party partyFromKey(CompositeKey key)
public Party partyFromName(java.lang.String name)
public Party partyFromAnonymous(AnonymousParty party)
public Party partyFromAnonymous(PartyAndReference partyRef)