Skip to content

Commit 7499df7

Browse files
author
[a561842] Hubert Marteau
committed
Merge Messages classes to new Maven Architecture
1 parent 7c235fe commit 7499df7

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed

src/multichain/command/MessagingCommand.java renamed to src/main/java/multichain/command/MessagingCommand.java

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package multichain.command;
22

3+
import multichain.command.MultichainException;
34
import multichain.command.builders.QueryBuilderMessaging;
45
import multichain.object.Address;
56

@@ -10,13 +11,14 @@ public MessagingCommand(String ip, String port, String login, String password) {
1011
}
1112

1213
/**
13-
* Verifies that message was approved by the owner of address by checking the
14-
* base64-encoded digital signature provided.
14+
* Verifies that message was approved by the owner of address by checking
15+
* the base64-encoded digital signature provided.
1516
*
1617
* @param address
1718
* (Address, required) The owner address
1819
* @param signature
19-
* (String, required) The base64-encoded digital signature to check
20+
* (String, required) The base64-encoded digital signature to
21+
* check
2022
* @param message
2123
* (String, required) The message
2224
* @return (Boolean) True if the message is approved, else false
@@ -27,12 +29,14 @@ public final boolean verifyMessage(Address address, String signature, String mes
2729
}
2830

2931
/**
30-
* {@link #verifyMessage(Address, String, String)} with address in format string
32+
* {@link #verifyMessage(Address, String, String)} with address in format
33+
* string
3134
*
3235
* @param address
3336
* (String, required) The owner address
3437
* @param signature
35-
* (String, required) The base64-encoded digital signature to check
38+
* (String, required) The base64-encoded digital signature to
39+
* check
3640
* @param message
3741
* (String, required) The message
3842
* @return (Boolean) True if the message is approved, else false

src/multichain/command/builders/QueryBuilderMessaging.java renamed to src/main/java/multichain/command/builders/QueryBuilderMessaging.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,14 @@
66
public class QueryBuilderMessaging extends QueryBuilderCommon {
77

88
/**
9-
* Verifies that message was approved by the owner of address by checking the
10-
* base64-encoded digital signature provided.
9+
* Verifies that message was approved by the owner of address by checking
10+
* the base64-encoded digital signature provided.
1111
*
1212
* @param address
1313
* (String, required) The owner address
1414
* @param signature
15-
* (String, required) The base64-encoded digital signature to check
15+
* (String, required) The base64-encoded digital signature to
16+
* check
1617
* @param message
1718
* (String, required) The message
1819
* @return (Boolean) True if the message is approved, else false

0 commit comments

Comments
 (0)