public class IdentityUtils
| Modifier and Type | Method and Description |
|---|---|
static <T> java.util.Map<net.corda.core.identity.Party,T> |
excludeHostNode(ServiceHub serviceHub,
java.util.Map<net.corda.core.identity.Party,? extends T> map)
Remove this node from a map of well known
class Partys. |
static <T> java.util.Map<net.corda.core.identity.Party,T> |
excludeNotary(java.util.Map<net.corda.core.identity.Party,? extends T> map,
SignedTransaction stx)
Remove the
class Party associated with the notary of a class SignedTransaction from the a map of class Partys. It is a no-op
if the notary is null. |
static java.util.Map<net.corda.core.identity.Party,java.util.List> |
groupAbstractPartyByWellKnownParty(ServiceHub serviceHub,
java.util.Collection<? extends net.corda.core.identity.AbstractParty> parties,
boolean ignoreUnrecognisedParties)
Group each
class AbstractParty by the well known party using the ServiceHub.identityService, in preparation for
creating FlowSessions, for example. |
static java.util.Map<net.corda.core.identity.Party,java.util.List> |
groupAbstractPartyByWellKnownParty(ServiceHub serviceHub,
java.util.Collection<? extends net.corda.core.identity.AbstractParty> parties)
Group each
class AbstractParty by the well known party using the ServiceHub.identityService, in preparation for
creating FlowSessions, for example. Throw an exception if some of the class AbstractPartys cannot be mapped
to a class Party. |
static java.util.Map<net.corda.core.identity.Party,java.util.List> |
groupPublicKeysByWellKnownParty(ServiceHub serviceHub,
java.util.Collection<? extends java.security.PublicKey> publicKeys,
boolean ignoreUnrecognisedParties)
Group each PublicKey by the well known party using the ServiceHub.identityService, in preparation for
creating FlowSessions, for example.
|
static java.util.Map<net.corda.core.identity.Party,java.util.List> |
groupPublicKeysByWellKnownParty(ServiceHub serviceHub,
java.util.Collection<? extends java.security.PublicKey> publicKeys)
Group each PublicKey by the well known party using the ServiceHub.identityService, in preparation for
creating FlowSessions, for example. Throw an exception if some of the PublicKeys cannot be mapped
to a
class Party. |
public static java.util.Map<net.corda.core.identity.Party,java.util.List> groupPublicKeysByWellKnownParty(ServiceHub serviceHub, java.util.Collection<? extends java.security.PublicKey> publicKeys, boolean ignoreUnrecognisedParties)
Group each PublicKey by the well known party using the ServiceHub.identityService, in preparation for creating FlowSessions, for example.
publicKeys - the PublicKeys to group.ignoreUnrecognisedParties - if this is false, throw an exception if some of the PublicKeys cannot be mapped
to a class Party.class Party to associated PublicKeys.public static java.util.Map<net.corda.core.identity.Party,java.util.List> groupPublicKeysByWellKnownParty(ServiceHub serviceHub, java.util.Collection<? extends java.security.PublicKey> publicKeys)
Group each PublicKey by the well known party using the ServiceHub.identityService, in preparation for
creating FlowSessions, for example. Throw an exception if some of the PublicKeys cannot be mapped
to a class Party.
publicKeys - the PublicKeys to group.class Party to associated PublicKeys.class Partypublic static java.util.Map<net.corda.core.identity.Party,java.util.List> groupAbstractPartyByWellKnownParty(ServiceHub serviceHub, java.util.Collection<? extends net.corda.core.identity.AbstractParty> parties, boolean ignoreUnrecognisedParties)
Group each class AbstractParty by the well known party using the ServiceHub.identityService, in preparation for
creating FlowSessions, for example.
parties - the class AbstractPartys to group.ignoreUnrecognisedParties - if this is false, throw an exception if some of the class AbstractPartys cannot be mapped
to a class Party.class Party to associated class AbstractPartys.class AbstractParty,
FlowSessionpublic static java.util.Map<net.corda.core.identity.Party,java.util.List> groupAbstractPartyByWellKnownParty(ServiceHub serviceHub, java.util.Collection<? extends net.corda.core.identity.AbstractParty> parties)
Group each class AbstractParty by the well known party using the ServiceHub.identityService, in preparation for
creating FlowSessions, for example. Throw an exception if some of the class AbstractPartys cannot be mapped
to a class Party.
parties - the class AbstractPartys to group.class Party to associated class AbstractPartys.class AbstractParty,
FlowSession,
class AbstractParty,
class Partypublic static <T> java.util.Map<net.corda.core.identity.Party,T> excludeHostNode(ServiceHub serviceHub, java.util.Map<net.corda.core.identity.Party,? extends T> map)
Remove this node from a map of well known class Partys.
class Party for this node removed.class Partypublic static <T> java.util.Map<net.corda.core.identity.Party,T> excludeNotary(java.util.Map<net.corda.core.identity.Party,? extends T> map,
SignedTransaction stx)
Remove the class Party associated with the notary of a class SignedTransaction from the a map of class Partys. It is a no-op
if the notary is null.
class Party for the notary removed.class Party,
class SignedTransaction,
class Party