Package com.exonum.core.messages
Interface Consensus.SignedMessageOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Consensus.SignedMessage,Consensus.SignedMessage.Builder
- Enclosing class:
- Consensus
public static interface Consensus.SignedMessageOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and Type Method Description Types.PublicKeygetAuthor()Public key of the author of the message.Types.PublicKeyOrBuildergetAuthorOrBuilder()Public key of the author of the message.com.google.protobuf.ByteStringgetPayload()Payload of the message.Types.SignaturegetSignature()Digital signature over the payload created with a secret key of the author of the message.Types.SignatureOrBuildergetSignatureOrBuilder()Digital signature over the payload created with a secret key of the author of the message.booleanhasAuthor()Public key of the author of the message.booleanhasSignature()Digital signature over the payload created with a secret key of the author of the message.Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getPayload
com.google.protobuf.ByteString getPayload()Payload of the message.
bytes payload = 1;- Returns:
- The payload.
-
hasAuthor
boolean hasAuthor()Public key of the author of the message.
.exonum.crypto.PublicKey author = 2;- Returns:
- Whether the author field is set.
-
getAuthor
Types.PublicKey getAuthor()Public key of the author of the message.
.exonum.crypto.PublicKey author = 2;- Returns:
- The author.
-
getAuthorOrBuilder
Types.PublicKeyOrBuilder getAuthorOrBuilder()Public key of the author of the message.
.exonum.crypto.PublicKey author = 2; -
hasSignature
boolean hasSignature()Digital signature over the payload created with a secret key of the author of the message.
.exonum.crypto.Signature signature = 3;- Returns:
- Whether the signature field is set.
-
getSignature
Types.Signature getSignature()Digital signature over the payload created with a secret key of the author of the message.
.exonum.crypto.Signature signature = 3;- Returns:
- The signature.
-
getSignatureOrBuilder
Types.SignatureOrBuilder getSignatureOrBuilder()Digital signature over the payload created with a secret key of the author of the message.
.exonum.crypto.Signature signature = 3;
-