-
Notifications
You must be signed in to change notification settings - Fork 137
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
Fix missing partial crypto functionality #89
Conversation
} | ||
} | ||
|
||
public function setCrypto(CryptoModule $cryptoModule) |
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.
FYI. In Kotlin/Java it is not possible to setCrypto in PubNub. User can setCrypto only in PNConfiguration.
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.
As I understood @techwritermat asked for that - maybe he will ask you too ;o
} | ||
} | ||
|
||
public function setCrypto(CryptoModule $cryptoModule) |
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.
As I understood @techwritermat asked for that - maybe he will ask you too ;o
if ($this->cryptoModule) { | ||
return $this->cryptoModule; | ||
} else { | ||
return $this->configuration->getCrypto(); |
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 this line creates a new cryptomodule on missing?
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.
if it has the cipher keyset up in config then will get the module. Else it raises an exception
No description provided.