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 Party s. |
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 Party s. 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 ServicesForResolution.getIdentityService , 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 ServicesForResolution.getIdentityService , in preparation for
creating FlowSessions, for example. Throw an exception if some of the class AbstractParty s 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
ServicesForResolution.getIdentityService , 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
ServicesForResolution.getIdentityService , in preparation for
creating FlowSessions, for example. Throw an exception if some of the PublicKeys cannot be mapped
to a class Party . |
static boolean |
x500Matches(java.lang.String query,
boolean exactMatch,
CordaX500Name x500name)
Check if x500name matches the query.
|
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 ServicesForResolution.getIdentityService
, 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.ServicesForResolution.getIdentityService
,
FlowSessionpublic 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 ServicesForResolution.getIdentityService
, 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.ServicesForResolution.getIdentityService
,
FlowSession,
PublicKey,
class Party
public 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 ServicesForResolution.getIdentityService
, 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 mapped
to a class Party
.class Party
to associated class AbstractParty
s.class AbstractParty
,
ServicesForResolution.getIdentityService
,
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 ServicesForResolution.getIdentityService
, 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
,
ServicesForResolution.getIdentityService
,
FlowSession,
class AbstractParty
,
class Party
public 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 Party
s.
class Party
for this node removed.class Party
public 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 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(java.lang.String query, boolean exactMatch, CordaX500Name x500name)
Check if x500name matches the query.