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 AbstractPartys to group.ignoreUnrecognisedParties - if this is false, throw an exception if some of the class AbstractPartys cannot be mappedto a class Party.class Party to associated class AbstractPartys.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 AbstractPartys cannot be mapped
to a class Party.
parties - the class AbstractPartys to group.class Party to associated class AbstractPartys.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 Partys.
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 Partys. It is a no-op
if the notary is null.
class Party for the notary removed.class Party,
class SignedTransaction,
class Partypublic static boolean x500Matches(@NotNull
java.lang.String query,
boolean exactMatch,
@NotNull
CordaX500Name x500name)