corda / net.corda.core.node / NodeInfo / identityAndCertFromX500Name


fun identityAndCertFromX500Name(name: CordaX500Name): PartyAndCertificate

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.


IllegalArgumentException - if the node has no matching identity.