corda / net.corda.core.node.services / NetworkMapCacheBase / getNodeByLegalName

getNodeByLegalName

abstract fun getNodeByLegalName(name: CordaX500Name): NodeInfo?

Return a NodeInfo which has the given legal name for one of its identities, or null if no such node is found.

Exceptions

IllegalArgumentException - If more than one matching node is found, in the case of a distributed service identity (such as with a notary cluster). For such a scenerio use getNodesByLegalName instead.