Commit graph

106 commits

Author SHA1 Message Date
AsamK
1e8c5eb522 Add additional log verbosity levels 2021-12-30 12:03:41 +01:00
AsamK
c73c58723c Implement unregister command for jsonrpc and dbus daemon 2021-11-12 16:07:35 +01:00
AsamK
79cc225869 Implement register and verify commands for json rpc 2021-11-11 19:14:32 +01:00
AsamK
b5eef3ccad Add logging bridge for java.util.logging 2021-11-08 22:16:44 +01:00
AsamK
2ab42ca547 Remove libsignal-service from manager lib API 2021-11-06 13:38:10 +01:00
AsamK
c9f5550d18 Remove workaround for getBoolean from JsonRpcLocalCommand 2021-09-30 19:36:31 +02:00
AsamK
f48593f265 Exit immediately if an uncaught error is thrown on the main thread 2021-09-12 14:37:56 +02:00
AsamK
2044a7d7a5 Print stack trace of exception causes in verbose mode 2021-09-08 20:38:24 +02:00
infra
0a63dd1db4
Enable unlimited strength crypto via system Security property (#608) 2021-05-01 08:38:31 +02:00
AsamK
221d937eec Add CommandException to abstract cli return codes for errors 2021-02-23 21:42:42 +01:00
AsamK
de273586b4 Use var instead of explicit types 2021-02-21 15:01:41 +01:00
AsamK
dd4225dcb1 Rename Cli class to App 2021-01-16 21:20:12 +01:00
AsamK
14c8f07b8d Move buildArgumentParser to Cli class 2021-01-16 18:09:29 +01:00
AsamK
b31e97dd2d Move recipients/group argument check to send commands 2021-01-16 10:21:38 +01:00
AsamK
ca86c421eb Allow calling signal-cli without -u flag
For daemon command all local users will be exposed as dbus objects
If only one local user exists, all other commands will use that user,
otherwise a user has to be specified.
2021-01-16 09:00:03 +01:00
AsamK
8d985d84fb Set log level to debug for verbose mode 2021-01-15 18:29:48 +01:00
AsamK
5938d54784 Add --verbose flag to show extended logging
Fixes #379
2021-01-15 11:43:53 +01:00
AsamK
0624d6a808 Make loggers private 2021-01-13 20:19:34 +01:00
Atomic-Bean
90f5cd79c9
Added JSON output to listGroups and allowed json to be activated with -j (#401)
* Added json output to listGroups and allowed json to be activated with -j

* Renamed classes

* Added AsamK's suggestions

* Removed isRegisted check since that is causing a conflict with upstream

* Fixed an issue in the help message for listGroupsCommand

* Re-enabled --json for receive and getUserStatuses commands as deprecated

* Added better depricated warning message and clarified some java doc stuff
2021-01-13 16:51:31 +01:00
AsamK
38267fa2a1 Update copyright notices 2021-01-11 19:51:24 +01:00
AsamK
e74be0c345 Refactor register and verify 2021-01-10 23:06:13 +01:00
AsamK
22f19c4067 Use File instead of String 2020-12-26 18:08:01 +01:00
AsamK
5c754b6f5d Use slf4j simple logger 2020-12-26 18:07:58 +01:00
AsamK
8957a08453 Print warning if libzkgroup is missing 2020-12-21 21:56:48 +01:00
AsamK
591c0fe8a3 Reformat project 2020-12-08 20:59:20 +01:00
AsamK
5829e3f117 Create service config only once 2020-06-04 17:59:05 +02:00
AsamK
1e0aa8929d Separate DbusSignal implementation from Manager 2020-05-15 23:11:18 +02:00
AsamK
d520023fc7 Refactor Manager and SignalAccount to implement Closeable
Should make sure that file lock and web socket connections are closed
reliably.
2020-05-13 23:33:40 +02:00
AsamK
a02031aa80 Refactor Manager to always have a valid SignalAccount instance
Extract ProvisioningManager to link new devices
2020-05-11 18:07:37 +02:00
AsamK
8163a42d3a Split manager ServiceConfig from BaseConfig 2020-05-11 14:51:55 +02:00
AsamK
00777a469c Switch to hypfvieh dbus-java
Removes transitive dependency on libmatthew-unix-java

Fixes #285
2020-05-06 09:13:49 +02:00
AsamK
995de3ef5b Improve behavior, when authorization fails
- register command should still be possible, to regain authorization
- reset uuid after registering, otherwise the verify request will fail
2020-03-24 18:15:21 +01:00
Lars K.W. Gohlke
f3ecddba6f refactor extracts method for security inits 2020-01-27 17:39:26 +01:00
AsamK
4bafc7212a Update copyright notice 2020-01-21 20:32:19 +01:00
AsamK
b2efef4d8c Reformat imports 2019-10-16 19:27:42 +02:00
AsamK
6f7350d031 Update dependencies 2019-03-23 22:05:59 +01:00
AsamK
c90d5db608 Update libsignal-service-java 2019-02-13 21:05:27 +01:00
Tai Groot
5d843d82ef Minor spelling/grammar fix 2018-12-14 08:46:40 +01:00
AsamK
337f84ed21 Change default data path to $XDG_DATA_HOME/signal-cli
Closes #152 and #125
2018-12-08 18:26:54 +01:00
AsamK
5f2190713a Use custom SecureRandom instance
- Use NativePRNG algorithm instead of using SHA1PRNG if available
- Register a custom security provider to use the same SecureRandom everywhere
2018-11-25 22:07:34 +01:00
AsamK
f60a10eb6e Split commands into separate classes 2018-11-20 23:19:39 +01:00
AsamK
860ec6f5dc Extract static methods from Main 2018-11-19 23:00:13 +01:00
AsamK
184354ffb7 Extract utils methods 2018-11-18 19:53:53 +01:00
AsamK
35c72f692f Extract SignalAccount from Manager 2018-11-18 17:12:39 +01:00
AsamK
701328b8c2 Move Manager to sub package 2018-11-18 11:08:24 +01:00
AsamK
7443225d96 Extract util methods to separate classes 2018-11-18 10:45:26 +01:00
AsamK
4ab904b88e Update signal-service-java dependency 2018-11-18 00:34:26 +01:00
AsamK
cafba8579f Reduce duplicate code 2018-08-12 21:35:17 +02:00
AsamK
12c296f9ec Add missing null check
Fixes #142
2018-08-12 21:35:17 +02:00
Riamse
fbbd194e40 Duct tape solution to make daemon actually output JSON 2018-05-17 18:07:31 +02:00