-
Notifications
You must be signed in to change notification settings - Fork 140
2.1.0 Release #251
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
Merged
Merged
2.1.0 Release #251
Changes from all commits
Commits
Show all changes
63 commits
Select commit
Hold shift + click to select a range
3f2462f
Add NaCl's symmetric key authenticated decryption code
marekoid 451a3f2
Add copyright for Pusher
marekoid a336ab7
Exclude crypt/nacl package from Javadoc
marekoid fa6a54d
Merge pull request #235 from pusher/decrypt
marekoid d851213
Add Base64 decoding and test for decryption
marekoid 540ff2d
Merge pull request #236 from pusher/decrypt-test
marekoid ce14b65
Add Base64 char validation
marekoid 1d43fdb
Use a better term
marekoid 4fed3e8
Merge pull request #237 from pusher/base64Validation
marekoid d035064
Exclude Base64 class from javadoc
marekoid 5c00b4a
Merge pull request #238 from pusher/base64JavadocExclusion
marekoid 5438e6c
Add a test for crypto authenticity failure
marekoid a880c55
Merge pull request #239 from pusher/decrypt-testFail
marekoid b539a3e
Add precondition check util
marekoid dbdea4e
Alter precondition failure massage
marekoid bb925cd
Use "must" instead of "should" for precondition failure
marekoid 593ca15
Merge pull request #240 from pusher/preconditions
marekoid 428bca0
Fix warnings about C-style array declarations in NaCl
marekoid 3092d93
Merge pull request #241 from pusher/fixCArrays
marekoid a97bcbd
Fix warnings about manual array copying
marekoid 7514384
Add validation for nonce length
marekoid 034efbb
Merge pull request #242 from pusher/fixManualArrayCopying
marekoid d6b6bfd
Fix warning about redundant array init
marekoid 7763927
Fix warnings about pointless operations
marekoid ccc2691
Fix warning about unnecessary semicolon
marekoid 090025e
Fix warnings about lowercase 'l' for long literals
marekoid bc366a8
Make constants marked and named as such
marekoid 90231f7
Merge pull request #243 from pusher/fixWarningsInNaCl
marekoid a884795
Merge remote-tracking branch 'remotes/origin/master' into decrypt-int…
marekoid 36747fd
Private Encrypted Channel (#234)
daniellevass ac42fb2
Remove clear key revisit TODO
marekoid 39f16b2
Merge pull request #244 from pusher/clearClearKeyTODO
marekoid 571607c
Add test around clearing the key
marekoid d003f33
Mach test data order with param order
marekoid 8ea7340
Add clearing of shared secret on disconnected
marekoid 7afd57e
Merge pull request #246 from pusher/testOpenFailsAfterClearKey
marekoid ddda077
Make unsubscribe to remove disconnect listener
marekoid 8ae2cb2
Add info about the need for tmp log for the semi-manual test
marekoid 670609e
Fix IndexOutOfBounds for no args in example app
marekoid b5059d3
Make naming consistent and more clear
marekoid 9c8bf51
Add PrivateEncryptedChannelClearsKeyTest
marekoid 95d5ca3
Revert making example app unsubscribe/disconnect
marekoid 0250472
Remove unused ArgumentCaptor
marekoid 3a8a7bc
Add. prepareEvent method to InternalChannel interface and implement i…
daniellevass d346cea
Merge pull request #247 from pusher/clearSharedSecretOnDisconnected
daniellevass c8ea300
Refactor getInterestedListeners to it's own method in ChannelImpl
daniellevass f290cb6
Decrypt PrivateEncrypted messages and retry once
daniellevass 8ee7b59
Merge branch 'decrypt-integration' into dev-decrypt-plus-retry
daniellevass 0cf29b7
Add tests for retrying decrypting messages
daniellevass 0e178e8
Simplify the getInterestedListeners method in ChannelImpl
daniellevass 4bfc70d
Handle multiple failed decryption calls better
daniellevass 3a8f63e
When decrypting a message, pass the json map to the PusherEvent const…
daniellevass b03e466
Refactor decryptMessage to package up as a PusherEvent
daniellevass a87547f
Move the retry logic into it's own method
daniellevass 2f5b7e2
Revert "Move the retry logic into it's own method"
daniellevass 0a62b93
Keep the shared_secret after the second retry so any subsequent messa…
daniellevass e694400
Return a copy of the interestedListeners
daniellevass f4fa2dd
Merge pull request #249 from pusher/dev-decrypt-plus-retry
daniellevass 63ca0d0
Private Encrypted Channels docs (#250)
daniellevass 2ec4a6d
Add maven central badge to readme
daniellevass 7c202e3
Prepare 2.1.0 release
daniellevass b98413e
Add beta notices to private encrypted channels
daniellevass e311d55
Update comment on PrivateEncryptedChannelEventListener
daniellevass 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
9 changes: 9 additions & 0 deletions
9
src/main/java/com/pusher/client/channel/PrivateEncryptedChannel.java
This file contains hidden or 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,9 @@ | ||
| package com.pusher.client.channel; | ||
|
|
||
| /** | ||
| * Represents a subscription to an encrypted private channel. | ||
| */ | ||
| public interface PrivateEncryptedChannel extends Channel { | ||
|
|
||
| // it's not currently possible to send a message using private encrypted channels | ||
| } |
12 changes: 12 additions & 0 deletions
12
src/main/java/com/pusher/client/channel/PrivateEncryptedChannelEventListener.java
This file contains hidden or 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,12 @@ | ||
| package com.pusher.client.channel; | ||
|
|
||
| /** | ||
| * Interface to listen to private encrypted channel events. | ||
| * Note: This needs to extend the PrivateChannelEventListener because in the | ||
| * ChannelManager handleAuthenticationFailure we assume it's safe to cast to a | ||
| * PrivateChannelEventListener | ||
| */ | ||
| public interface PrivateEncryptedChannelEventListener extends PrivateChannelEventListener { | ||
|
|
||
| void onDecryptionFailure(String event, String reason); | ||
| } | ||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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.
this comment should be updated to say
handleAuthenticationFailureas we refactored that method.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.
Have updated.