public class InMemoryIdentityService extends SingletonSerializeAsToken implements IdentityService
Simple identity service which caches parties and provides functionality for efficient lookup.
| 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 |
partyFromKey(CompositeKey key) |
Party |
partyFromName(java.lang.String name) |
void |
registerIdentity(Party party) |
toTokengetAllIdentities, partyFromKey, partyFromName, registerIdentitytoTokenpublic 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.partyFromKeypublic Party partyFromKey(CompositeKey key)
public Party partyFromName(java.lang.String name)