-
Notifications
You must be signed in to change notification settings - Fork 113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Zmq secure connect implementation #641
Merged
Merged
Changes from 17 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
56a07ca
zmq secure connection implement
AionJayT 9fc903a
Merge branch 'native-check' into secure-zmq
AionJayT 49c46a7
implement the curve key loading in the zmq ProtocolProcessor
AionJayT f994aea
more detail for the log and the config settings
AionJayT 56998ef
Merge branch 'master' into secure-zmq
AionJayT 91c64b1
fix zmq key loading error
AionJayT 3d570d6
fix api secure connect config reset after kernel launch
AionJayT 17fc73c
modify zmq key naming rule for the OS compatibility
AionJayT 8067f6f
Merge branch 'master-pre-merge' into secure-zmq
AionJayT 49c0ea7
add zmq_keystore into gitignore
AionJayT 3f84a20
refactoring the getFiles method to a class
AionJayT 1c75109
refactoring zmq secure connection for logging
AionJayT 33c68bd
refactoring CfgApiZmq logging, ProtocolProcessor construct process an…
AionJayT 0f14ba4
fix merge error
aionjay 04672de
update api repo ref
aionjay 415caea
move zmq key pair generate ouside of Cli. Will be checked after confi…
aionjay 27caad4
undo format Cli and remove comment in Aion class
aionjay a51c944
fix pack issue
aionjay 117a502
Merge branch 'master-pre-merge' into secure-zmq
aionjay 699080a
fix module-info settings for modAionImpl
aionjay 2208f82
update default config settings for the Java API secure connect
aionjay File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ | |
/log/ | ||
/rt/ | ||
/web3/ | ||
/zmq_keystore/ | ||
/jars/ | ||
|
||
# ide | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/* | ||
* Copyright (c) 2017-2018 Aion foundation. | ||
* | ||
* This file is part of the aion network project. | ||
* | ||
* The aion network project is free software: you can redistribute it | ||
* and/or modify it under the terms of the GNU General Public License | ||
* as published by the Free Software Foundation, either version 3 of | ||
* the License, or any later version. | ||
* | ||
* The aion network project is distributed in the hope that it will | ||
* be useful, but WITHOUT ANY WARRANTY; without even the implied | ||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
* See the GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with the aion network project source files. | ||
* If not, see <https://www.gnu.org/licenses/>. | ||
* | ||
* Contributors: | ||
* Aion foundation. | ||
*/ | ||
|
||
package org.aion.base.io; | ||
|
||
import java.nio.file.Path; | ||
import java.util.Arrays; | ||
import java.util.Collections; | ||
import java.util.List; | ||
|
||
public class File { | ||
public static List<java.io.File> getFiles(final Path path) { | ||
if (path == null) { | ||
System.out.println("getFiles null path input!"); | ||
return Collections.emptyList(); | ||
} | ||
|
||
try { | ||
java.io.File[] files = path.toFile().listFiles(); | ||
return files != null ? Arrays.asList(files) : Collections.emptyList(); | ||
} catch (UnsupportedOperationException | NullPointerException e) { | ||
System.out.println("getFiles exception: " + e.toString()); | ||
return Collections.emptyList(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a benefit to this fall-back/fuzzy logic? Why not just have two hard-coded file names it looks for?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was thinking the user will generate several keypairs in case need to switch the keyset. The public key also needs to be updated to the client side, then the connection will be setup.