public class IdentityUtils
@NotNull public static java.util.Map<net.corda.core.identity.Party,java.util.List> groupPublicKeysByWellKnownParty(@NotNull ServiceHub serviceHub, @NotNull 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 mappedto a class Party
.class Party
to associated PublicKeys.ServiceHub.identityService
,
FlowSession@NotNull public static java.util.Map<net.corda.core.identity.Party,java.util.List> groupPublicKeysByWellKnownParty(@NotNull ServiceHub serviceHub, @NotNull 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.ServiceHub.identityService
,
FlowSession,
PublicKey,
class Party
@NotNull public static java.util.Map<net.corda.core.identity.Party,java.util.List> groupAbstractPartyByWellKnownParty(@NotNull ServiceHub serviceHub, @NotNull 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 AbstractParty
s to group.ignoreUnrecognisedParties
- if this is false, throw an exception if some of the class AbstractParty
s cannot be mappedto a class Party
.class Party
to associated class AbstractParty
s.class AbstractParty
,
ServiceHub.identityService
,
FlowSession@NotNull public static java.util.Map<net.corda.core.identity.Party,java.util.List> groupAbstractPartyByWellKnownParty(@NotNull ServiceHub serviceHub, @NotNull 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 AbstractParty
s cannot be mapped
to a class Party
.
parties
- the class AbstractParty
s to group.class Party
to associated class AbstractParty
s.class AbstractParty
,
ServiceHub.identityService
,
FlowSession,
class AbstractParty
,
class Party
@NotNull public static <T> java.util.Map<net.corda.core.identity.Party,T> excludeHostNode(@NotNull ServiceHub serviceHub, @NotNull java.util.Map<net.corda.core.identity.Party,? extends T> map)
Remove this node from a map of well known class Party
s.
class Party
for this node removed.class Party
@NotNull public static <T> java.util.Map<net.corda.core.identity.Party,T> excludeNotary(@NotNull java.util.Map<net.corda.core.identity.Party,? extends T> map, @NotNull SignedTransaction stx)
Remove the class Party
associated with the notary of a class SignedTransaction
from the a map of class Party
s. It is a no-op
if the notary is null.
class Party
for the notary removed.class Party
,
class SignedTransaction
,
class Party
public static boolean x500Matches(@NotNull java.lang.String query, boolean exactMatch, @NotNull CordaX500Name x500name)