Package net.corda.v5.ledger.common
Interface NotaryLookup
-
- All Implemented Interfaces:
@DoNotImplement() public interface NotaryLookup
Defines a mechanism to allow flows to retrieve the NotaryInfo in the network. The platform will provide an instance of NotaryLookup to flows via property injection.
-
-
Method Summary
Modifier and Type Method Description abstract Collection<NotaryInfo>
getNotaryServices()
Gets a Collection of NotaryInfo services available on the network. abstract NotaryInfo
lookup(@NotNull() MemberX500Name notaryServiceName)
Looks up the notary information of a notary by legal name. abstract boolean
isNotaryVirtualNode(@NotNull() MemberX500Name virtualNodeName)
Determines whether the specified virtual node name is a notary, which is defined by the network parameters. -
-
Method Detail
-
getNotaryServices
@NotNull()@Suspendable() abstract Collection<NotaryInfo> getNotaryServices()
Gets a Collection of NotaryInfo services available on the network.
-
lookup
@Nullable()@Suspendable() abstract NotaryInfo lookup(@NotNull() MemberX500Name notaryServiceName)
Looks up the notary information of a notary by legal name.
- Parameters:
notaryServiceName
- The MemberX500Name of the notary service to retrieve.
-
isNotaryVirtualNode
@Suspendable() abstract boolean isNotaryVirtualNode(@NotNull() MemberX500Name virtualNodeName)
Determines whether the specified virtual node name is a notary, which is defined by the network parameters.
- Parameters:
virtualNodeName
- The MemberX500Name to check.
-
-
-
-