X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fbe%2Fnikiroo%2Ffanfix%2Flibrary%2FRemoteLibraryServer.java;h=f88b25ae5a3d335938fba59b0c3a24fea6afb8f9;hb=c1bb921e4435bdc48fce18be3ca808226d4930e9;hp=4a6ed606453fa1cfbdaf6236143832c55603793a;hpb=3040c4f03ba0c34694fca6b8e9413746bef65a37;p=fanfix.git diff --git a/src/be/nikiroo/fanfix/library/RemoteLibraryServer.java b/src/be/nikiroo/fanfix/library/RemoteLibraryServer.java index 4a6ed60..f88b25a 100644 --- a/src/be/nikiroo/fanfix/library/RemoteLibraryServer.java +++ b/src/be/nikiroo/fanfix/library/RemoteLibraryServer.java @@ -2,11 +2,17 @@ package be.nikiroo.fanfix.library; import java.io.IOException; import java.net.URL; +import java.nio.file.AccessDeniedException; import java.util.ArrayList; import java.util.Date; +import java.util.HashMap; import java.util.List; +import java.util.Map; + +import javax.net.ssl.SSLException; import be.nikiroo.fanfix.Instance; +import be.nikiroo.fanfix.bundles.Config; import be.nikiroo.fanfix.data.Chapter; import be.nikiroo.fanfix.data.MetaData; import be.nikiroo.fanfix.data.Paragraph; @@ -24,16 +30,12 @@ import be.nikiroo.utils.serial.server.ServerObject; * The available commands are given as arrays of objects (first item is the * command, the rest are the arguments). *

- * All commands, including PING, will first return a random value to you that - * you must hash with your key and return before processing the rest; if the - * value not correct, the connection will be closed. + * All the commands are always prefixed by the subkey (which can be EMPTY if + * none). *

- * BTW: this system is by no means secure. It is just slightly - * obfuscated, and operate on clear text (because Google decided not to support - * anonymous SSL exchanges on Android, and the main use case for this server is - * Android). *