Node Info
Information about a network node that acts on behalf of some party. NodeInfos can be found via the network map cache, accessible from a net.corda.core.node.services.NetworkMapCache. They are also available via RPC using the net.corda.core.messaging.CordaRPCOps.networkMapSnapshot method.
Constructors
Properties
An ordered list of IP addresses/hostnames where the node can be contacted.
An ordered list of legal identities supported by this node. The node will always have at least one, so if you are porting code from earlier versions of Corda that expected a single party per node, just use the first item in the returned list.
A non-empty list, where the first identity is assumed to be the default identity of the node.
An integer representing the set of protocol features the node supports. See the docsite for information on how the platform is versioned.
Functions
Returns the party identity of the first identity on the node. Until we have proper handling of multiple identities per node, for tests we use the first identity as special one. TODO: Should be removed after multiple identities are introduced.
Until we have proper handling of multiple identities per node, for tests we use the first identity as special one. TODO: Should be removed after multiple identities are introduced.
Get a legal identity and certificate of this node from the X.500 name. This is intended for use in cases where the node is expected to have a matching identity, and will throw an exception if no match is found.
Get a legal identity of this node from the X.500 name. This is intended for use in cases where the node is expected to have a matching identity, and will throw an exception if no match is found.