forked from konsultaner/connectanum-dart
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Draft: PPT mode #1
Closed
Closed
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
f8ad73f
Renamed feature: payload_transparency -> payload_passthru_mode to ali…
KSDaemon 9f647e4
Added ppt options to event and invocation messages
KSDaemon 9f177d2
Added ppt options to messages and provided verify method
KSDaemon 92f215a
Updated readme with more pretty empty checkbox symbol
KSDaemon f8adde7
Imported serializers in session for using with PPTs
KSDaemon e7fb4fc
Added serialization/deserialization of PPT Payload to all resializers
KSDaemon 1933252
Added PPT payload serialization to publish API
KSDaemon 10b9b13
Added PPT payload serialization to the invocation handler
KSDaemon 6bdd305
Added PPT payload serialization to the EVENT handler
KSDaemon c4aa66e
Added PPT payload serialization to the Invocation Yielding
KSDaemon 1dbe8a4
Covered PPT serialization/deserialization in JSON Serializer
KSDaemon 0bfb8a7
Covered PPT serialization/deserialization in CBOR Serializer
KSDaemon 91e60cd
Covered with tests PPT serialization/deserialization in MsgPack Seria…
KSDaemon 4fa68ed
Covered with tests PPT Calls/Invocations/Yields/Results + fixed relat…
KSDaemon 3040e93
Removed unnecessary imports
KSDaemon bf8169f
Fixed typo
KSDaemon 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 |
---|---|---|
|
@@ -4,3 +4,4 @@ | |
connectanum-dart.iml | ||
.packages | ||
pubspec.lock | ||
coverage |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/// Payload PassThru Options are the same across all wamp messages | ||
/// this provides a common checks for them | ||
abstract class PPTOptions { | ||
|
||
// Payload Passthru mode options | ||
String? ppt_scheme; | ||
String? ppt_serializer; | ||
String? ppt_cipher; | ||
String? ppt_keyid; | ||
|
||
bool VerifyPPT() { | ||
if (ppt_scheme != null && | ||
ppt_scheme != 'wamp' && | ||
ppt_scheme != 'mqtt' && | ||
!ppt_scheme!.startsWith('x_')) { | ||
throw ArgumentError.value(ppt_scheme, 'PPTSchemeError', 'ppt scheme provided is invalid'); | ||
} | ||
|
||
if (ppt_scheme! == 'wamp' && | ||
(ppt_serializer == null || ppt_serializer != 'cbor' )) { | ||
// WAMP E2EE works over cbor or flatbuffers, but we support only cbor | ||
// So checking only against it | ||
throw ArgumentError.value(ppt_serializer, 'PPTSerializerError', 'ppt serializer provided is invalid or not supported'); | ||
} | ||
|
||
return true; | ||
} | ||
|
||
bool Verify(); | ||
} |
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.
Timeout possibly null at this point?