Package net.corda.v5.membership
Interface NotaryInfo
-
- All Implemented Interfaces:
public interface NotaryInfo
Stores information about a notary service available in the network.
Example usages:
- Java:
MemberX500Name name = notaryInfo.getName(); String protocol = notaryInfo.getProtocol(); Collection<Integer> protocolVersions = notaryInfo.getProtocolVersions(); PublicKey publicKey = notaryInfo.getPublicKey(); Boolean backchainRequired = notaryInfo.getBackchainRequired();
- Kotlin:
val name = notaryInfo.name val protocol = notaryInfo.protocol val protocolVersions = notaryInfo.protocolVersions val publicKey = notaryInfo.publicKey val backchainRequired = notaryInfo.backchainRequired
-
-
Method Summary
Modifier and Type Method Description abstract MemberX500Name
getName()
abstract String
getProtocol()
abstract Collection<Integer>
getProtocolVersions()
abstract PublicKey
getPublicKey()
abstract Boolean
isBackchainRequired()
-
-
Method Detail
-
getName
@NotNull() abstract MemberX500Name getName()
- Returns:
Name of the notary (note that it can be an identity of the distributed node).
-
getProtocol
@NotNull() abstract String getProtocol()
- Returns:
The name of the flow protocol used by this notary.
-
getProtocolVersions
@NotNull() abstract Collection<Integer> getProtocolVersions()
- Returns:
List of versions supported for the flow protocol used by this notary.
-
getPublicKey
@NotNull() abstract PublicKey getPublicKey()
- Returns:
The public key of the notary service, which will be a composite key of all notary virtual nodes keys.
-
isBackchainRequired
@NotNull() abstract Boolean isBackchainRequired()
- Returns:
boolean of whether it requires backchain verification.
-
-
-
-