Package com.exonum.messages.core
Interface Messages.SignedMessageOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Messages.SignedMessage
,Messages.SignedMessage.Builder
- Enclosing class:
- Messages
public static interface Messages.SignedMessageOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and Type Method Description Types.PublicKey
getAuthor()
Public key of the author of the message.Types.PublicKeyOrBuilder
getAuthorOrBuilder()
Public key of the author of the message.com.google.protobuf.ByteString
getPayload()
Payload of the message as a serialized `ExonumMessage`.Types.Signature
getSignature()
Digital signature over the payload created with a secret key of the author of the message.Types.SignatureOrBuilder
getSignatureOrBuilder()
Digital signature over the payload created with a secret key of the author of the message.boolean
hasAuthor()
Public key of the author of the message.boolean
hasSignature()
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 as a serialized `ExonumMessage`.
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;
-