NetworkMapCacheBase.DefaultImpls
Keywords: net.corda.core.node.services.NetworkMapCacheBase.DefaultImpls class
Date: 2023-09-18

net.corda.core.node.services

## Class NetworkMapCacheBase.DefaultImpls

- net.corda.core.node.services.NetworkMapCacheBase.DefaultImpls

- Enclosing interface:
    NetworkMapCacheBase

      public static class NetworkMapCacheBase.DefaultImpls

  Subset of `interface NetworkMapCache` that doesn't depend on an `interface IdentityService`.

  See Also:
    `interface NetworkMapCache`, `interface IdentityService`

- - ### Constructor Detail

    - #### DefaultImpls

          public DefaultImpls()

  - ### Method Detail

    - #### getPeerByLegalName

          @Nullable
          public static Party getPeerByLegalName(NetworkMapCacheBase $this,
                                                           @NotNull
                                                           CordaX500Name name)

      Look up the well known identity of a legal name. This should be used in preference to well known identity lookup in the identity service where possible, as the network map is the authoritative source of well known identities.

    - #### getNotary

          @Nullable
          public static Party getNotary(NetworkMapCacheBase $this,
                                                  @NotNull
                                                  CordaX500Name name)

      Look up a well known identity of notary by legal name.